I'm trying to get my app to pass the torture test. I finally (being thick it took me some time) figured out that when the "attachment" is message/rfc822 then I have to do a DecodePart and use the .Lines eg
----------------------------------------------------------- Content-Disposition: inline Content-Description: I'll be whatever I wanna do. --Fry Content-Type: message/rfc822 Subject: plain jane message From: Ryan Finnie To: [EMAIL PROTECTED] Message-Id: Mime-Version: 1.0 Date: 23 Oct 2003 22:25:56 -0700 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 8bit Subject: plain jane message From: Ryan Finnie To: [EMAIL PROTECTED] Content-Type: text/plain Message-Id: Mime-Version: 1.0 Date: 23 Oct 2003 22:25:56 -0700 Content-Transfer-Encoding: 7bit This is a plain text/plain message. Nothing fancy here... ----------------------------------------------------------- But what I can't figure out is how to extract the email. Here, for instance, I'd take from the second Content-Type to the end, others in the Torture Test are in a different layout. I don't like the way WinMail does it, and if I used the above in Synapse and used my software to decode it I get two FROMs, TOs etc. Can anyone tell me how I should be doing it because I'm obviously doing it wrong! Roy Lambert ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public