note 5144 deleted from function.imap-header by didou

From: Date: Sun, 14 Jan 2007 23:34:24 +0000
Subject: note 5144 deleted from function.imap-header by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121662@lists.php.net to get a copy of this message
Note Submitter: ed at lexingrad dot net ---- Use something like this to display the number of new messages: <pre> /*$new_messages = 0; for( $i=0 ; $i < $nummsg ; $i++ ) { $msg = imap_header($mailbox, $msg_array[$i]); if ($msg->Unseen == "U"|| $msg->Recent == "N") { $new_messages = $new_messages + 1; } } echo "<br> $new_messages NEW Messages";*/ </pre> uncommented of course : ~)

« previous php.notes (#121662) next »