Re: imap_search and results
| From: | Nicolas Diez | Date: | Thu, 26 Aug 2004 14:30:10 +0000 |
| Subject: | Re: imap_search and results | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194796@lists.php.net to get a copy of this message | ||
On Thu, 26 Aug 2004 22:25:00 +0800, fongming
<fongming@fonn.fongming.idv.tw> wrote:
> Hello:
> >Here is my code :
> >/-------------------/
> >$mails = imap_search($mbox, 'TO
> >"gentoo-user->fr@lists.gentoo.org"',SE_UID);
> >echo sizeof($mails);
> >/------------------/
>
> You can start to parse the mailheader,mailbody...
>
> for($i=0;$i<count($mails);$i++)
> {
> $h=@imap_header($mbox,$mails[$x-1]);
> echo $subject=$h->subject;
> echo $sender=$h->from[0];
> echo "<BR>";
> }
>
> Hi, nice to meet you!
> ------------------------------------------
> ¡»From: ¦¹«H¬O¥Ñ®p»Ê¤u§@«Ç©Òµo¥X...
> http://fonn.fongming.idv.tw
> fongming@fonn.fongming.idv.tw
>
Thank you, I have finally found what is the thing which was the
problem, it was the option SE_UID in the search function.