Parsing MIME messages using imap_fetchbody
Posted: Tue Jul 31, 2007 11:20 am
I'm getting a little confused with the 3rd parameter of imap_fetchbody and what I should be specifying if I want to retrieve just the e-mail message with no headers or anything else that comes with the email. And also what I should specify if I want to retrieve just the attachment part (IE - .zip files or .pdf files).
What complicates this more is that these e-mails are RFC822 attachments of another e-mail. There doesn't seem a way to precisely define that I want certain areas from an e-mail and there's very little documentation anywhere and the documentation that is around the internet doesn't explain how to parse required parts of RFC822 attachments that may also contain attachments.
What complicates this more is that these e-mails are RFC822 attachments of another e-mail. There doesn't seem a way to precisely define that I want certain areas from an e-mail and there's very little documentation anywhere and the documentation that is around the internet doesn't explain how to parse required parts of RFC822 attachments that may also contain attachments.