README 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. Mail Fetch -- Version 1.3.0
  2. Downloads mail from a pop3 server to your SquirrelMail account.
  3. Features
  4. ========
  5. * Copies messages from remote server
  6. * Saves server, alias, username, and password in prefs file...
  7. * Remembers where to resume downloading messages if
  8. your pop server supports UIDL.
  9. * Optionally deletes mail from the remote server.
  10. * Allow an infinite amount of remote servers
  11. * Optional to not save password - prompt on check
  12. * Save messages into a local IMAP folder instead of INBOX
  13. * Check mail during login (Needs SM 1.1.3 or older).
  14. * Check mail during folder refreshes.
  15. * Allows gettext translations.
  16. Description
  17. ===========
  18. Feel like grabbing your messages from a different mail server into
  19. SquirrelMail? This might be able to help.
  20. Configuration
  21. =============
  22. Under the options you can add, delete or modify server list where
  23. fetching mail. For each server you can set also username and password;
  24. if you leave password blank, the password whore required when you fetch
  25. mail. Make sure "Leave Mail On Server" is checked if you do not want
  26. Mail_Fetch to delete it from the remote server. Once configured,
  27. click 'Fetch' in the SquirrelMail menu to get your mail; you can fetch
  28. mail from all server instead or from only one by selecting the options
  29. dispayed.
  30. If you want to check mail periodicaly choose "Check mail during login"
  31. or "Check mail during folder refresh". Of course passwords have to be
  32. entered in order for this to work.
  33. In order to secure a little bit the system, pop3 passwords can be encrypted.
  34. The encryption key may be defined in to places. The first, and more secure,
  35. is in the httpd configuration as an enviromental variable called MF_TIT
  36. only accesible from the squirrelmail directory.
  37. the way you can do this from apache is adding the following directives to
  38. httpd.conf (supposing that squirrelmail is located at /usr/local) or an
  39. included configuration file:
  40. <Directory "/usr/local/squirrelmail">
  41. SetEnv MF_TIT "MailFetch Secure for SquirrelMail 1.x"
  42. </Directory>
  43. Of course, you should replace the text inside double quotes with the key
  44. you want to (some kind of secret text). A please remember that the file
  45. where you decided to place this must be root only readable.
  46. The second way is to edit functions.php and look for:
  47. if( !isset( $MF_TIT ) ) {
  48. $MF_TIT = "MailFetch Secure for SquirrelMail 1.x";
  49. }
  50. Once again change the text "MailFetch 0.8 Secure for SquirrelMail 1.x"
  51. with a secret text.
  52. Please note that you must redefine passwords each time you change the key.
  53. To maintain compatibilty with older systems, mail_fetch can work with old
  54. pref files, with no encrypted passwords. If this occurs, you'll see that
  55. the "Encrypt Password" checkbox in the option page is not checked. If you
  56. reenter account's passwords the system will switch to encrypted mode.
  57. Future Work
  58. ===========
  59. * Add IMAP server stealing
  60. * Limit number of pop accounts
  61. Installation
  62. ============
  63. As with other plugins, just uncompress the archive in the plugins
  64. directory, go back to the main directory, run configure and add the plugin.
  65. Questions/comments/flames/etc can be sent to the SquirrelMail plugins list.
  66. Old versionn (0.7) has been updated from 0.6 by Philippe Mingo <mingo@rotedic.com>
  67. IMPORTANT!!! This is a "secured" version, it makes a little encryption
  68. of the pop3 passwords. In order to use this facility, systems that
  69. have been using older versions (0.6 and lessers) should reenter
  70. passwords using the modify button at the options page in order to
  71. encrypt the password. The Encrypt passwords checkbox is only informative,
  72. and it lets you know if passwords are secure or not.
  73. Old version (0.4) has been updated from Joshua's version 0.3 by
  74. Tomaso Minelli <minni@minnata.net>
  75. and Tyler (but only VERY minor stuff -- not worth really mentioning)
  76. Old version (0.3) has been updated from Tyler's original version 0.1 by
  77. Joshua Pollak <pardsbane@offthehill.org>
  78. Translations
  79. ============
  80. Translation is made in the same manner than Squirrelmail's core does.
  81. You need to take <plugin_name>.po file, fill the template, store it
  82. in the appropriate locale folder under the plugin and compile the po
  83. file. Better than this fill the po file and send it back to the author.
  84. The translation will be included in the next release of the plugin.
  85. Note for mod_gzip users
  86. =======================
  87. As fetching module shows information while fetching is taking place, it
  88. is a good idea to disable compression for that operation. The way to do
  89. this with mod_gzip is:
  90. mod_gzip_item_exclude file fetch.php
  91. Note for Newmail Plugin users
  92. =============================
  93. In order to Newmail plugin detect new mails during folder refreshes
  94. make sure that Mail_Fetch is listed first that Newmail in the
  95. SM configuration. To do so you only have to remove Newmail plugin
  96. and then add it again.
  97. ChangeLog
  98. =========
  99. 1.3.1
  100. Bugfix
  101. ------
  102. 1 Delete mail server routine update record not as expected.
  103. The logic is still correct to completed the wanted action, but the order
  104. is not preserved. The last record was to replace the deleted record.
  105. 2. Connection to IMAP server is not terminated at some condition during
  106. appending email and block the program.
  107. Added features
  108. --------------
  109. 1. The UIDL now updated to reflect last successfully fetched mail when
  110. fetching mail from server is stopped in the middle.
  111. 2. POP3 connection will be re-established for non-persistent server failure.
  112. "Chiu Wai Pun" <pun@alumni.ust.hk>
  113. ---------------------------------------------------------------------------
  114. Philippe Mingo <mingo@rotedic.com>
  115. ---------------------------------------------------------------------------
  116. 1.3.0 Official SM Version - Moved into the SM package.
  117. 1.2.6 BugFix
  118. 1.2.5 Bugfix
  119. 1.2.4 Optimized class.POP3. Fixed problem with spaces in folders name.
  120. 1.2.3 non-gettext systems now works
  121. 1.2.2 Fixed login problems.
  122. 1.2.1 Added polish translation.
  123. 1.2.0 Added spanish translation.
  124. 1.1.2 Bugfix: Missing include at login check.
  125. 1.1.1 Bugfix: Now works with SM 1.1.1 and 1.1.2. To do this check during
  126. login is disabled with these versions.
  127. 1.1 Bugfix: Now messages deletes correctly from pop servers.
  128. 1.0 Added check during folder refresh and check during login code.
  129. 0.9 Added an alias for each server. Changed default encryption key, please
  130. reenter passwords if you're not using environment system.
  131. 0.8 Better encryption security through env variables.
  132. 0.7 Added password encryption and strings internationalization.
  133. ----------------------------------------------------------------------------
  134. 0.6 Bugfix for folder list and typo
  135. set_time_limit of 20 seconds per message (to avoid timeout errors)
  136. 0.5 Works properly for servers that have 0 messages to fetch
  137. ----------------------------------------------------------------------------
  138. Tomaso Minelli <minni@minnata.net>
  139. ----------------------------------------------------------------------------
  140. 0.4 Allow an infinite amount of remote servers
  141. If password is empty, prompt on check
  142. Save messages into a local IMAP folder instead of INBOX
  143. (Tyler) Uses new 1.1.1 validate.php format
  144. ----------------------------------------------------------------------------
  145. Joshua Pollak <pardsbane@offthehill.org>
  146. ----------------------------------------------------------------------------
  147. 0.3 Converted fetch routine to use the POP3 object from thewebmasters.net
  148. Added Leave Mail on Server option
  149. Now only downloads new messages if the pop server supports UIDL.
  150. ----------------------------------------------------------------------------
  151. 0.2 Now saves account information
  152. 0.1 Initial release by Tyler Akins
  153. ----------------------------------------------------------------------------