note 110444 added to function.imap-fetch-overview

From: Date: Tue, 23 Oct 2012 07:25:34 +0000
Subject: note 110444 added to function.imap-fetch-overview
Groups: php.notes 
Request: Send a blank email to php-notes+get-191491@lists.php.net to get a copy of this message
If you lost a mail use this [php] public function READallUnreadmail(){ if ($headers = imap_check($this->msgbox)){ $lastnr = $headers->Nmsgs; if ($mails=imap_fetch_overview($this->msgbox,"1:".$lastnr,0)){ while (list($key, $val) = each($mails)) { if (++$key>=0&&$header= imap_header($this->msgbox, $key)){ if($header->Unseen=='U'||$header->Recent=='R'){ echo "<br>".$val->msgno." - ".$val->date." - ".$val->subject."\n<br>"; print "IREAD".$header->Msgno; //$this->getattachmentof($header->Msgno); } } } } } } [/php] ---- Server IP: 69.147.83.199 Probable Submitter: 213.118.37.132 ---- Manual Page -- http://www.php.net/manual/en/function.imap-fetch-overview.php Edit -- https://master.php.net/note/edit/110444 Del: integrated -- https://master.php.net/note/delete/110444/integrated Del: useless -- https://master.php.net/note/delete/110444/useless Del: bad code -- https://master.php.net/note/delete/110444/bad+code Del: spam -- https://master.php.net/note/delete/110444/spam Del: non-english -- https://master.php.net/note/delete/110444/non-english Del: in docs -- https://master.php.net/note/delete/110444/in+docs Del: other reasons-- https://master.php.net/note/delete/110444 Reject -- https://master.php.net/note/reject/110444 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191491) next »