Imap error

From: Date: Mon, 26 Apr 2004 12:15:56 +0000
Subject: Imap error
Groups: php.general 
Request: Send a blank email to php-general+get-184618@lists.php.net to get a copy of this message
i tried this piece of code but if the mailbox is too big or the server too busy it fails and comes up with strange error somebody knows how to solve this ? $mbox = imap_open("{".$_POST["imapserver"].":143}",$_POST["imaplogin"],$_POST["imapp assword"]); $list = imap_getmailboxes($mbox, "{".$_POST["imapserver"].":143}", "*"); echo "<br><b>Connecting to $_POST[imapserver]... </b><br>"; file://print_r($list); $totalmsgs = 0; $totaldmsgs = 0; if(is_array($list)) { reset($list); while (list($key, $val) = each($list)) { // echo "<br>($key) "; // echo str_replace("{".$_POST["imapserver"].":143}","",imap_utf7_decode($val->name) )."<br>"; // echo "'" . $val->delimiter . "',"; // echo $val->name; file://if($val->attributes == 4) // { imap_reopen($mbox,$val->name); echo "<br>>Open sub Mailbox ".imap_utf7_decode($val->name); $check = imap_mailboxmsginfo($mbox); if($check) { file://echo " Mailbox: msg $check->Nmsgs d:$check->Deleted\n" ; $totalmsgs += $check->Nmsgs; $totaldmsgs += $check->Deleted; Total Messages :49 / 1 Notice: (null)(): SELECT failed: Non-existant mailbox (errflg=2) in Unknown on line 0 Notice: (null)(): SELECT failed: Non-existant mailbox (errflg=2) in Unknown on line 0

« previous php.general (#184618) next »