|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-19 20:14 UTC] rasmus at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
Using imap_fetch_overview() causes a strange behaviour in the way the FROM header is treated. $val->from in the following script grows every time, instead of being reset. $result = imap_fetch_overview ($mbox, $list, 0); echo "<TABLE><TR><TD>Id</TD><TD>From</TD><TD>Subject</TD><TD>Date</TD><TD>Size</TD></TR>\n"; flush(); while ( list($key,$val) = each ($result)) { echo "<TR><TD>$tmp" . $val->msgno . "$xtmp</TD><TD>$tmp" . htmlspecialchars($val->from) . "$xtmp</TD><TD>$tmp" . $val->subject . "$xtmp</TD><TD>$tmp" . $val->date . "$xtmp</TD><TD>$tmp" . $val->size . "$xtmp</TD></TR>\n"; } echo "</TABLE>";