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

geodaniel - February 26, 2009 - 15:13

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

neochief - September 18, 2009 - 01:25
Version:6.x-1.5» 6.x-1.x-dev
Status:active» needs review

Cron doesn't works, because mailhandlers opens imap session two times. Here's a fix.

AttachmentSize
mailhandler_cron_fix.patch 1.69 KB

#3

Janam - October 11, 2009 - 02:10

I tried using that patch, it didn't seem to help.

#4

Janam - October 11, 2009 - 20:31

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

von-p - November 9, 2009 - 11:43

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

von-p - October 21, 2009 - 15:24
Status:needs review» active
 
 

Drupal is a registered trademark of Dries Buytaert.