reading forwarded mails from gmail using imap_fetch_overview
Posted: Sat Jan 24, 2009 11:13 am
I am forwarding my emails from my gmail account to a mailbox using gmail's forwarding facility [Using Setting->Forward option]
Now, from that mailbox i am fetching overview using imap_fetch_overview . I am not at all interested in what the body of email(s) contains.
Now, the real issue is that if someone emails me (to my gmail address) and appends the "To:" section with more then one email address (along with mine).
On "overview->to" (in imap_fetch_overview) i get this result:
myname<myemail@gmail.com>, name2<name2@heremailaddress.com>
HOW can i programmatically "know" the source email address [in this case myemail@gmail.com] from forwarded emails.
Now, from that mailbox i am fetching overview using imap_fetch_overview . I am not at all interested in what the body of email(s) contains.
Now, the real issue is that if someone emails me (to my gmail address) and appends the "To:" section with more then one email address (along with mine).
On "overview->to" (in imap_fetch_overview) i get this result:
myname<myemail@gmail.com>, name2<name2@heremailaddress.com>
HOW can i programmatically "know" the source email address [in this case myemail@gmail.com] from forwarded emails.