Failed connections to mail server do not get logged properly

tjsaker - October 4, 2009 - 00:10
Project:Mailhandler
Version:6.x-1.8
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

In Mailhandler 6.x-1.8

When imap_open() gets called and fails to open a session, the error(s) do not get logged to the watchdog log. The only watchdog evidence is a PHP error that is inconclusive:

"imap_open() [function.imap-open]: Couldn't open stream {tsaker.clacorp.com:111/pop3/notls}INBOX in C:\Documents and Settings\TJS\My Documents\per\development\workspace-PER\AWC\site\sites\all\modules\mailhandler\mailhandler.module on line 194."

I'm including a patch to mailhandler.module which logs all messages returned by PHP imap_errors().

AttachmentSize
mailhandler.module-20091003.patch528 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.