Summary | PHP script for command line fetchmail |
Queue | IMP |
Queue Version | 4.3.6 |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | tjacyno (at) galasoft (dot) net |
Created | 01/02/2010 (5676 days ago) |
Due | |
Updated | 10/27/2010 (5378 days ago) |
Assigned | |
Resolved | 02/04/2010 (5643 days ago) |
Milestone | |
Patch | Yes |
to accomplish it. Willing to add it to http://wiki.horde.org/ImpModule
Q: Someone give me a hint.
calling is still via a cron task to "php
/path/to/horde/imp/scripts/fetch.php <username> <password> > /dev/null
2>&1
A separate cron line need to be created for every email user though.
That's OK for now, at least it works.
accomplish it. Willing to add it to http://wiki.horde.org/ImpModule
Q: Someone give me a hint.
I've been faffing with configs for months to try and get this to work
but have now finally got there. Note that this script doesn't work
when IMP is setup to allow users to specify their required mail
server. Turning this option off forced my default IMAP server to be
used and it all works great.
fyi 'IMP authentication failed' ..the script's error message was
useless for debug purposes ..as were the lack of entries in the
horde.log.
Many thanks for this work though.
State ⇒ Resolved
Assigned to Michael Slusarz
function (authenticate) and use of private variable in Notification
object.
Bug: 8812[mms] Add command line fetchmail script (tjacyno@galasoft.net,
Ticket #8812).http://cvs.horde.org/diff.php/imp/docs/CHANGES?rt=horde&r1=1.699.2.418&r2=1.699.2.419&ty=u
http://cvs.horde.org/co.php/imp/scripts/Attic/fetch.php?rt=horde&r=1.1.2.1
removed. Wondering if this is something better posted on the wiki.
State ⇒ Accepted
fetching mail, not filtering mail.
State ⇒ Feedback
filtering? I tend to reject this script, unless someone can convince
me that the same can't be don't much better through server-side
filtering.
fetch.php does not introduce new functionality. The end result can be
obtained by configuring existing tools to fetch mail and by using
scripts generated by Ingo to configure IMAP server filtering. The
goal, for me at least, was to simplify the administration process by
making both the fetching and filtering actions configured within the
Horde web interface available when accessing mail through desktop
applications.
Priority ⇒ 1. Low
State ⇒ New
New Attachment: fetch.php
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ PHP script for command line fetchmail
Type ⇒ Enhancement
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