Multipart Mime Message Parser in .NET BCL

  • Thread starter Thread starter mrashidsaleem
  • Start date Start date
M

mrashidsaleem

I have been looking in BCL for utility class(es) that could help me
parse a multipart mime message but the search ended with no luck. I
guess parsing such messages (email message is an example of multipart
mime message, http does support multipart mime messages as well) is a
very common requirement and wonder why MS opted not to include a
utility class for that (although classes like
System.Net.Mail.MailMessage, System.Web.HttpRequest etc. do support
creating/loading such messages).

I am looking for an implementation that could help me do the following
tasks (a rather basic implementation of a multipart mime message
parser as a .NET class).
1. Load a message from a file stream or string
2. Give me the collection of message headers (name value collection)
3. Give me the content (body part; without headers)
4. Give me parts of the messages for a multipart message individually
as a separate mime message object or something like that
5. Support for encoding / decoding would be an added advantage

A Multipart mime message writer class would also be a great one to
have.
See if anybody could help pointing out "hidden" classes in BCL or free
utility classes written by third parties...
 
Hello!
You wrote on Thu, 21 Jun 2007 02:19:51 -0700:

m> I am looking for an implementation that could help me do the following
m> tasks (a rather basic implementation of a multipart mime message
m> parser as a .NET class).

You might want to check MIMEBlackbox pacakge: http://www.eldos.com/sbb/net-mime.php
Not only it gives you what you need, but also includes support for S/MIME
and PGP/MIME

With best regards,
Eugene Mayevski
http://www.SecureBlackbox.com - the comprehensive component suite for
network security
 
Back
Top