PHP : Function Reference : IMAP, POP3 and NNTP Functions : imap_msgno
dcridland.at.redwire.com
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:
$msguid = false; $msgno = imap_msgno( $your_initialized_connection, $msguid );
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.
|