Couple of IMAP questions
- From: news@xxxxxxxxxxxxx (Al)
- Date: Tue, 27 Nov 2007 10:39:20 -0500
I writing a script to fetch bounced emails from a dedicated mailbox.
$mbox = imap_open($addr, $user, $pw);
I've got a simple foreach(){
$bodyStr = imap_body($mbox, $num);> ....
... $hdrStr = imap_fetchheader($mbox, $num);
Using 110/pop3 is incredibly slow. The php documentation implies that using the direct IMAP connection may be faster. But, I can't get it to work with
{foo.org:143/imap} with or without the "/imap". "110/pop3" works fine.
Is IMAP really faster? If not, I'll not bother trying to get IMAP to work.
Second question: I need data from both the bounced header and the original header, which is in the bounced body. Thus, I used imap_fetchheader() and imap_body(). Obviously this requires two fetches.
Is there a way to fetch the whole message with one fetch? I can't find a function to do it.
Thanks....
.
- Follow-Ups:
- Re: [PHP] Couple of IMAP questions
- From: Chris
- Re: [PHP] Couple of IMAP questions
- Prev by Date: Re: Newbie asks about multi-lingual website strategies
- Next by Date: Nested include/require not working in 5.2
- Previous by thread: any phpers in or around Rotterdam, Holland looking for a job?
- Next by thread: Re: [PHP] Couple of IMAP questions
- Index(es):
Relevant Pages
|