note 55123 deleted from function.imap-fetch-overview by didou

From: Date: Sun, 14 Jan 2007 18:13:53 +0000
Subject: note 55123 deleted from function.imap-fetch-overview by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121636@lists.php.net to get a copy of this message
Note Submitter: borg at diekippe dot de ---- $overview = imap_fetch_overview($mailbox,"1:$MN",0); $size = sizeof($overview); sort($overview); // <---- to sort the mails foreach($overview as $key){ $uid = $key->msgno; $part = imap_fetchstructure($mailbox,$uid); if(sizeof($part->parts) >0){ $anhang = "<img src='../template_bilder/cms_admin/anhang.gif' border='0'>"; }else{ $anhang = "<img src='../template_bilder/cms_admin/keinanhang.gif' border='0'>"; } if($key->seen == "0" && $key->recent == "0"){ $bold = "<b>"; $close_bold = "</b>"; $imagemail = '<table border="0" cellpadding="2" cellspacing="0"><tr><td valign="top" width="10">'.$anhang.'</td><td valign="top" align="right"><img src="../template_bilder/cms_admin/mail0neu.gif" border="0"></td></tr></table>'; }else{ $bold = ""; $close_bold = ""; $imagemail = '<table border="0" cellpadding="2" cellspacing="0"><tr><td valign="top" width="10">'.$anhang.'</td><td valign="top" align="right"><img src="../template_bilder/cms_admin/gelesen.gif" border="0"></td></tr></table>'; }

« previous php.notes (#121636) next »