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.
Thanks,
Erik
"Edwin Martin" <e.********@chello.nl> wrote in message
news:O9*****************@amsnews05.chello.com...
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.
--
http://www.bitstorm.org/