IMAP body structure parsing.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
HiJacK
Forum Newbie
Posts: 2
Joined: Fri Oct 24, 2003 11:40 am
Location: New Lexington

IMAP body structure parsing.

Post by HiJacK »

yes I said that right body structure parsing, an email in an email if you want to say it that way.

The thing is I need a way to pull the header information out of an email thats attached inside the email, the information is there because if I open the message up with a text editor I see it but do to the lack of documentation in the imap section of php.net I cannot understand how to do so.

Ive tried to fetch it with fetch structure but my attempts at fetching parts using the fetch structure have failed altho it does work nice for emails without attachments, Ive also tried parsing the body with both imap_body and imap_fetchbody but thats also a no go because the information isnt always there in some emails, Ive tried to read RFC 822 but I see no information in that topic on how php parsing parts of an email. someone please help me Ive spent about a week for this searching for an answer on my own and Ill be damned if I could find one on google or on php.net in the user comments section :(
HiJacK
Forum Newbie
Posts: 2
Joined: Fri Oct 24, 2003 11:40 am
Location: New Lexington

Post by HiJacK »

ok can someone at least shoot me out a quick script to where I can open a imap based email with raw sokects? I guess if I can't parse the headers Ill parse the whole email.
Post Reply