note 15795 added to function.imap-msgno
| From: | dcridland dot at dot redwire dot com at php2 dot chek dot com | Date: | Wed, 03 Oct 2001 10:32:51 +0000 |
| Subject: | note 15795 added to function.imap-msgno | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18506@lists.php.net to get a copy of this message | ||
<p>Note that imap_msgno() doesn't ever give you an error message. So, assuming
you're passing about message numbers as a UID, be warned that:</p>
<p>$msguid = false;<br>
$msgno = imap_msgno( $your_initialized_connection, $msguid );</p>
<p>Will leave ($msgno==1) - this is probably not what you want, and it's surprisingly
easy to miss while you're doing the basic testing.</p>
--
http://www.php.net/manual/en/function.imap-msgno.php
http://master.php.net/manage/user-notes.php?action=edit+15795
http://master.php.net/manage/user-notes.php?action=delete+15795
http://master.php.net/manage/user-notes.php?action=reject+15795