[Tickets #8812] Re: PHP script for command line fetchmail

bugs at horde.org bugs at horde.org
Sat Jan 2 11:44:48 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8812
------------------------------------------------------------------------------
  Ticket             | 8812
  Updated By         | tjacyno at galasoft.net
  Summary            | PHP script for command line fetchmail
  Queue              | IMP
  Version            | 4.3.6
  Type               | Enhancement
  State              | New
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


tjacyno at galasoft.net (2010-01-02 06:18) wrote:

Attached is a PHP script allowing to run Horde's fetchmail from the  
command line.  It is heavily based on the horde/scripts/alarms.php  
script and is meant to be placed within the horde/scripts directory.

After searching the Web, I saw that several inquiries had been made  
about such functionality.  In my case, I wanted to be able to call  
Horde's fetchmail as a cron job for the following reasons:

- Horde is great, but I sometimes want to access the IMAP server  
associated to Horde via a desktop application such as Thunderbird.   
The Horde fetchmail cron job avoids having to configure fetching and  
filtering in more than one place.

- Some of the e-mail accounts from which messages are fetched get a  
lot of spam.  Fetching messages regularly reduces the wait associated  
to processing when obtaining new e-mails.  Yes, getmail or the BerliOS  
fetchmail applications can be used, but this involves configuring  
fetching in more than one place.  Furthermore, Horde has a nice  
web-based configuration interface.

Currently, the Horde e-mail account's username and password have to be  
specified on the command line.  There must be a better way.

This script has been successfully used with the IMP found in Horde  
Groupware Webmail Edition 1.2.3 and 1.2.5 and can be related to the  
"[#6030] The possibility to automate the fetchmail-feature"  
enhancement request.  Hope you find this useful.

Regards,

Terence Jacyno






More information about the bugs mailing list