Hello Wilfried, > 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 ?
Content-Type may be 'text/html' in a single part message as well. > 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) ? Check the part headers, I think even in OE you can disable multipart when sending HTML messages, so a plain text part may be missing. I also think you cannot rely on a certain order of Text and Html parts. In my AutoReader NT I take the plain text if available otherwise the program tries a basic HTML To Text conversation. Arno Garrels > > -- > Rgds, Wilfried > http://www.mestdagh.biz -- 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