Re: parse mime
From: Erik Rosenbach (heath10277_at_hotmail.com)
Date: Wed, 6 Oct 2004 21:26:53 -0700
Thanks Edwin for the answer, unfortunately it will not be that simple of a
process. What I have to work with is actually about 80K records coming out
of an Oracle database. These records (message bodies) are from an Lyris
News group server and I am porting them into something else. One of the key
problems with the content and the embedded mime is that I have some messages
with multipart headers... for text, html, and for attachments. I'm not
worried about any of the attachments, I just want to scrape the content.
Not every message is embedded with the mime either. Some of them are plain
text which is fine. The really problematic messages are the messages in
which people have posted the messaged and replied to. Some of these
messages have long trail of "original message" headers in them as well.
What I would ideally like to find, is a email parser I can passed the
message body to, and have it return to me a only the plain text body.
"Edwin Martin" <firstname.lastname@example.org> wrote in message
> Erik Rosenbach wrote:
>> I have a question about how to parse out mime from a message. I have
>> email messages that are stored in a database table and these messages
>> have mime headers embedded within them. How can I parse out this mime
>> content and retrieve only the text messages?
> You mean you want to get rid of the header of the message?
> The body of the e-mail message is the text after the first blank line.
> That's easy to program.
> Edwin Martin.