PC Review


Reply
Thread Tools Rate Thread

Extract body from MIME message

 
 
centur
Guest
Posts: n/a
 
      5th May 2006
I need to acquire content body of MIME encoded message (as IMessage
object).I want using C# and CDO Interop extract such data
("eJ8+IggVAQaQ..." unicode part).

Here is example of Bodypart (complete original here
http://msdn.microsoft.com/library/de...kbone_767n.asp)

------ =_NextPart_000_01BAE995.CB66A290
Content-Type: application/ms-tnef
Content-Transfer-Encoding: base64

eJ8+IggVAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAAzAcBABcADQAWAAYAAgAWAQEggAMADgAAAMwHAQAX
---cutted----

------ =_NextPart_000_01BAE995.CB66A290--


I tried to obtain it through CDO.IBodyPart.GetStream() ( I also tried
GetDecodedContentStream, same result) but any attempts to Read() or
ReadText() from ADODB.Stream
throws ExecutionEngineException or NullReference one.
Saving to file works fine but I want to do all operations in-memory
(SaveToFile have only one parameter - path to file - unable to replace
it with any Stream-like object)
I dont sure how to use ADODB.Stream, but according to debug info - it's
opened, position in the begining of the stream, other properties look
correct either. But no luck with read from.

Any ideas or detailed RTFMs (MSDN didn't enlighten about this problem)

PS This message is second part of problem with getting attachments from
MS-TNEF encoded message. I was pointed to OpenPOP Library, but
unfortunately OpenPOP TNEFparser implementation isn't good enough
(maybe only in my case =( ), and now I'm going to extract body and
decode it by hands with some help of OpenPOP TNEFParser.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract multiple MIME/base64 inline parts from a *.txt file ? Tobias Merler Windows XP Internet Explorer 2 13th Sep 2006 01:14 AM
Re: Multipart/Alternative MIME , ignoring plain text body part Brian Tillman Microsoft Outlook Discussion 0 1st Jul 2005 08:08 PM
Re: Multipart/Alternative MIME , ignoring plain text body part Sue Mosher [MVP-Outlook] Microsoft Outlook Discussion 0 1st Jul 2005 06:49 PM
S/MIME message body hlabbott Microsoft Dot NET 0 5th Feb 2004 06:32 PM
Decrypt Mime - s/mime Message Patrick Microsoft C# .NET 1 1st Sep 2003 12:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:28 AM.