Parse Email File

Author: Jerry Foote

Posted: 2011-04-13 at 08:22:30

Can anyone point me to a free tool to parse a email message. I was surprised

at the varieties of ways that messages are composed. I some guidance as to

how to locate the message, specifically what defines the start and end of a

message. I can see all of the tags for From, To, Subjects, For and some

others I'm not interested in.

I'm using alines after I use filetostr and sometimes the result drops the

top part of the file and I get message only, other times I get the whole

message in the array.

I'm using the string "Content-Transfer-Encoding" to define the start of the

message, not clear what ends the message part.

Some rules as to what to expect would be nice, a tool that just does it

would be better!

Thanks Jerry

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/10A40DA57C57438ABC7521B975EACB34@jerryfootePC

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jerry Foote