I got intrested in writing my own pop3 email reader using imap functions.
I can retrieve individual parts of an email with imap_fetchbody() and display/decode accordingly.
Even though in PHP manual, it says parts can not have parts, it comes out thats not true.
email that is FORWARDED can NOT be decoded and appears as raw text when displayed on the screen. Especially if the forwarded email contains images, when displayed all that is seen ascii text.
Here is a break down of what I mean
[Email]
- Part 0 (header)
- Part 1 (Message)
- Part 2 (mixed, multitype)
- Part 2.0 (Header)
- Part 2.1 (Image)
- Part 2.2 (Image)
When I view an email with above structure, Part 2 gets displayed as one big chunk and I cant get to individual parts with in Part 2.
Can someone suggest some good reading / resources as to how these parts are obtained for display/decode.
Thanks