Jump to:
Issue Summary
I'm having a problem where a second mailbox configured will throw back errors during cron. I'm using mailhandler in conjunction with listhandler to fetch mail from a pop3 mailbox.
The first mailbox configured functions correctly. The second one partially works - I can "test" it, which comes back with a successful connect status. I can also "retrieve" the mailbox, where I get a progress bar retrieving the correct number of messages from the inbox. However when I run cron, that particular mailbox fails with the following errors:
* warning: imap_open(): Couldn't open stream {localhost:110/pop3/notls}INBOX in E:\websites\mog_drupal\modules\mailhandler\mailhandler.module on line 193.
* warning: imap_close(): supplied argument is not a valid imap resource in E:\websites\mog_drupal\modules\mailhandler\mailhandler.retrieve.inc on line 621.
Please help me, this is driving me crazy!
I am coding this priority critical, as it does break mailhandler from working properly. However, since half of mailhandler is working, please re-prioritize if you need to.
Thanks
Aaron Bockelie
Here's an overview of my config:
Drupal 6.13
Access to update.php Protected
CAPTCHA Already 5 blocked form submissions
Configuration file Protected
Cron maintenance tasks Last run 0 sec ago
You can run cron manually.
Database updates Up to date
Drupal core update status Up to date
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
IMAP Enabled
Mailhandler requires that PHP's IMAP extension is enabled in order to function properly.
Module and theme update status Up to date
MySQL database 5.1.36
PHP 5.2.10
PHP memory limit 512M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Microsoft-IIS/6.0
Comments
#1
I should add that the whole point of the second account is to insert messages into a listhandler enabled forum from a archive of old messages. I have them in mbox format, and I tried using mailhandler to read the mbox and achieved only failure. So, I figured I'd just convert the mbox files into eml files, dump them into a pop3 server and retrieve them that way. I am able to easily retrieve the messages from a regular email client.
Is there any interaction problems with cron with this mail config where the pop3 server isn't truly an external, routable mail server?
#2
Could it be access restrictions on your server? Did you set the domain to "localhost" at mailhandler's config?
#3
I think I can pretty much clear this issue. It had to do with the mail server poorly handling multiple bad logon attempts. It sure would be nice to get some better error trapping out of the mail configuration screen though.
#4
So, if you don't mind, I'll move the discussion to: #787754: More detailed error reporting.
Thanks for taking the time to come back and write about the possible error, aaronsb.