note 34043 added to function.imap-open

From: Date: Mon, 14 Jul 2003 18:39:29 +0000
Subject: note 34043 added to function.imap-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-52094@lists.php.net to get a copy of this message
I want to clear something up here: Using @imap_open to avoid the "mailbox is empty" error, DOES NOT WORK! This is because the error is actually reported at the END of the script, not during the imap_open call. Just call imap_errors() after imap_open() and it will be cleared. It took a while to figure out what was happening here. Really, an empty mailbox is a normal state, not an error state. This should not be reported at all. ---- Manual Page -- http://www.php.net/manual/en/function.imap-open.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34043 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34043&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34043&report=yes

« previous php.notes (#52094) next »