cron isn't triggering mail handler
mdowsett - January 14, 2009 - 14:11
| Project: | Mailhandler |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
If I retrieve the mail manually, mailhandler works....cron is running successfully, but it isn't triggering mailhandler to go get the mail. What can be done?

#1
It sounds like there might be a module running in cron before mailhandler, which either takes up more time than it should or drops out once it's done. What other modules do you have running on cron?
#2
Cron doesn't works, because mailhandlers opens imap session two times. Here's a fix.
#3
I tried using that patch, it didn't seem to help.
#4
Correction, it seems mailhandler works when I run cron manually, but not when it runs automatically. When I look at the logs, it seems the manually runs are done by me while the automatic ones are done by anonymous. Could this be the issue?
#5
I also have this problem : when I test the connection with the mailbox, and if i retrieve manualy the mails, it works perfectly (for both POP and IMAP).
But when i run a cron (both automaticaly or manualy) I get this for POP :
* warning: imap_open() [function.imap-open]: Couldn't open stream {mail.xxxx.be:110/pop3/novalidate-cert/notls}INBOX in /home/xxxx/domains/xxx.be/public_html/xxxxx/sites/all/modules/mailhandler/mailhandler.module on line 193.* warning: imap_close(): supplied argument is not a valid imap resource in /home/xxxxx/domains/xxxx.be/public_html/xxxxx/sites/all/modules/mailhandler/mailhandler.retrieve.inc on line 625.
And this for IMAP :
* warning: imap_header() [function.imap-header]: Bad message number in /home/xxx/domains/xxx.be/public_html/xxxxxxx/sites/all/modules/mailhandler/mailhandler.retrieve.inc on line 636.* warning: imap_fetchstructure() [function.imap-fetchstructure]: Bad message number in /home/xxx/domains/xxxx.be/public_html/xxxxx/sites/all/modules/mailhandler/mailhandler.retrieve.inc on line 60.
* warning: imap_fetchstructure() [function.imap-fetchstructure]: Bad message number in /home/xxxx/domains/xxxx.be/public_html/xxxxxx/sites/all/modules/mailhandler/mailhandler.retrieve.inc on line 60.
* warning: imap_fetchstructure() [function.imap-fetchstructure]: Bad message number in /home/xxxx/domains/xxxx.be/public_html/xxxx/sites/all/modules/mailhandler/mailhandler.retrieve.inc on line 121.
* warning: imap_close(): 75 is not a valid imap resource in /home/xxxx/domains/xxxx.be/public_html/xxxx/sites/all/modules/mailhandler/mailhandler.retrieve.inc on line 752.
And not a single mail is retrieved...
Any idea ?
mailhandler 6x-1.x-dev
-P-
#6