Zarabozo, Francisco (GE, Corporate) wrote:
> Hello Bill,
> 
> Thank you for answering. I'm writing a web mail application. I want to 
> perfectly separate each part in multipart messages, correctly display the 
> main message in the right format (e.g. html or text according to whatever 
> each message would display as main message in screen if it was being viewed 
> in Outlook), decode any attached file including images that should be 
> inserted in a html message and display links to any attachment that is 
> supposed to be separately opened (e.g. images that are supposed to be 
> inserted in html are not supposed to be opened as attachments and 
> viceversa).
> 
> Basically, I want to be able to do with Perl exactly what an application 
> like Outlook Express is able to do in order to show an eml message.
> 
> The problem with Email::MIME is that for certain messages created with 
> Outlook or Windows Live Mail (which are supposed to be 100% correct), there 
> are some specifications or formats in each MIME part or multipart that are 
> not being recognized by the module (p.e. "Unkown mime type" or "Ilegal 
> character in X content type"). It doesn't happen with all messages, just 
> certain messages. I'm trying the script with about 5,000 messages i have in 
> my "Sent Items" folder, each one created by Microsoft applications (I've 
> used Outlook, Outlook Express and Windows Live Mail and I imported my 
> messages in each change).
> 
> I guess there are lots of perfectly compliant formats in a multipart/mixed 
> message that somehow are not being considered by Email::MIME but are being 
> correctly interpreted by the Microsoft Mime Parser.
> 
> That's why I wanted to know if someone here knows about some module that 
> works better for a complete parsing of such messages without losing the 
> original format of the message (e.g. I know I can just parse text or html in 
> several ways, but it may end up showing something totally different to what 
> something like Outlook would show).

I would try MIME::Parser and if you encounter a non-compliant message, I
would just display it in plain text.

PS: Please don't top-post your replies.  Intersperse your responses after
the appropriate part of the text and delete the rest.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to