note 75544 added to function.imap-thread
| From: | cypATlipousseDOTno-ipDOTorg at osu1 dot php dot net | Date: | Mon, 04 Jun 2007 23:20:12 +0000 |
| Subject: | note 75544 added to function.imap-thread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127202@lists.php.net to get a copy of this message | ||
<?php
// Ici nous affichons les threads d'une boite email
$mbox = imap_open("{localhost:143/imap/notls}INBOX",$user,$pass)
or die("Connexion impossible : " . imap_last_error());
$threads = imap_thread($mbox);
foreach ($threads as $key => $val) {
$tree = explode('.', $key);
if ($tree[1] == 'num') {
$header = imap_headerinfo($mbox, $val);
$fromname = $object->personal;
$fromaddress = $object->mailbox . "@" . $object->host;
$subject = $header->Subject;
$date = $header->date;
$body = imap_body($mbox,$val);
echo "<ul>\n\t<li><b>".$subject."</b> :: <a
href=\"".$fromaddress."\">" . $fromname . "</a> ::
".$date."\n
<pre>".$body."</pre>";
} elseif ($tree[1] == 'branch') {
echo "\t</li>\n</ul>\n";
}
}
imap_close($mbox);
?>
----
Server IP: 217.174.196.197
Probable Submitter: 82.233.191.121
----
Manual Page -- http://www.php.net/manual/en/function.imap-thread.php
Edit -- https://master.php.net/note/edit/75544
Del: integrated -- https://master.php.net/note/delete/75544/integrated
Del: useless -- https://master.php.net/note/delete/75544/useless
Del: bad code -- https://master.php.net/note/delete/75544/bad+code
Del: spam -- https://master.php.net/note/delete/75544/spam
Del: non-english -- https://master.php.net/note/delete/75544/non-english
Del: in docs -- https://master.php.net/note/delete/75544/in+docs
Del: other reasons-- https://master.php.net/note/delete/75544
Reject -- https://master.php.net/note/reject/75544
Search -- https://master.php.net/manage/user-notes.php