There are other cases. I have some example messages from a mailing list that are multipart/mixed with four parts where each part is text/plain and no HTML.

So, the robust solution here is if it is multipart, to examine the content type of each part individually and see if it is text/plain.

Sly

Wilfried Mestdagh wrote:
Hello,

I need to get plain texp part of mail, even if it for example sent in
HTML. Easy to do with mimedecode component. However I have some
questions:

1. It seems easy to check if mail is in plain text or HTML. Just look to
the header Content-Type: witch start with eather 'multipart' or with
'text/plain'. Is this correct and always the case ?

2. If multipart HTML then part 1 seems to be the plain text part of the
message. Is always plain text sent with all mail readers if sending
HTML, and is this always the first part, or do I have to look to the
part header (as with message header) ?

--
Rgds, Wilfried
http://www.mestdagh.biz



--




This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to