note 35472 deleted from function.imap-status by aidan

From: Date: Wed, 08 Sep 2004 05:40:32 +0000
Subject: note 35472 deleted from function.imap-status by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76192@lists.php.net to get a copy of this message
Note Submitter: arash mikaeili : webmaster at ircigroup dot com ---- Hi this function don't work properly with pop3 for examlpe if test the example in this page with pop3 : <?php $mbox = imap_open("{214.254.25.25:110:/pop3}","username", "password",OP_HAL FOPEN) or die("can't connect: ".imap_last_error()); $status = imap_status($mbox, "{214.254.25.25:110:/pop3}INBOX",SA_ALL); if($status) { print("Messages: ". $status->messages )."<br>\n"; print("Recent: ". $status->recent )."<br>\n"; print("Unseen: ". $status->unseen )."<br>\n"; print("UIDnext: ". $status->uidnext )."<br>\n"; print("UIDvalidity:". $status->uidvalidity)."<br>\n"; } else print "imap_status failed: ".imap_last_error()."\n"; imap_close($mbox); ?> ---------------------------------------------------- result will not be correct : $status->messages : work fine $status->recent : retutn all as recent $status->unseen : retutn all as unseen ---------------------------------------------------- but when use it with imap every thing work fine. opne source,open minds,open future

« previous php.notes (#76192) next »