I get the following error when I click "Retrieve" on the Mailhandler::List page:
-----------------------------------------------
warning: imap_open() [function.imap-open]: Couldn't open stream {mail.mydomain.com:110/pop3}INBOX in /home/mydomain/public_html/drupal/sites/all/modules/mailhandler/mailhandler.module on line 167.
warning: imap_close(): supplied argument is not a valid imap resource in /home/mydomain/public_html/drupal/sites/all/modules/mailhandler/mailhandler.retrieve.inc on line 529.
-----------------------------------------------
I get the following email from cron daemon if mailhandler cron processing is enabled:
-----------------------------------------------
Fatal error: Call to undefined function mailhandler_cron_retrieve() in /home/mydomain/public_html/drupal/sites/all/modules/mailhandler/mailhandler.module on line 16
-----------------------------------------------
There was an email to be retrieved when the above messages were received.
I've manually tested the email account by sending email to it and retrieving said email with Outlook.
Thanks.
Steve
Comments
Comment #1
smahnken commentedI have the same problem. Based on the documentation found at http://api.drupal.org/api/function/module_load_include/6 it looks like there's an error in mailhandler's inclusion of its cron function.
Change line 16 in mailhandler.module to read:
module_load_include('inc', 'mailhandler', 'mailhandler.retrieve');
That solves the problem for me.
Comment #2
steveray commentedThanks for the module_load_include bug fix.
Replacing line 16 as suggested doesn't seem to fix the cron problem for me, it just stops the cron retrieval altogether. The replacement line looks a lot like line 11, not sure why.
I see the called "mailhandler_cron_retrieve" function code at the bottom of the mailhandler.retrieve.inc file, but don't know yet why the call fails.
And it's too late tonight to start on it...
I also had to add "/notls" in the "Extra Commands" field. This cured the other problem Retrieve "Couldn't open stream..." error.
See:
http://www.php.net/manual/en/function.imap-open.php
and
http://us.php.net/imap_open
for information.
Steve
Comment #3
moshe weitzman commentedcommitted this fix. thanks.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.