Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What .NET Mime Parsing libraries are available? [closed]

Tags:

.net

mime

I have a project that utilizes the javax.mail.internet.MimeMessage and other related classes that does mime parsing for emails that we receive. This needs to be ported to .NET.

What .Net 3rd party or built in library can I use to replace the Java classes that I'm using?

EDIT: Anything change in the last 9 months since I asked this question?

like image 431
Guy Avatar asked Nov 27 '22 13:11

Guy


2 Answers

I've recently released MimeKit which is far more robust than any of the other open source .NET MIME parser libraries out there and it's orders of magnitude faster as well due to the fact that it is an actual stream parser and not a recursive descent string parser (which also has the added benefit of it using a LOT less memory).

It has full support for S/MIME v3.2 (including compression, which none of the other libraries that claim "full" support actually support) and OpenPGP.

For SMTP, POP3, and IMAP you can use my MailKit library which supports a bunch of SASL authentication mechanisms including XOAUTH2 (used by Google). The SMTP client supports PIPELINING which can improve performance of sending mail and the IMAP client supports a growing number of extensions that allow clients to optimize their bandwidth as well.

like image 120
jstedfast Avatar answered Dec 30 '22 14:12

jstedfast


I've not used javax.mail.internet.MimeMessage, so I can't say how any of this compares, but .NET 2.0 and beyond does have a System.Net.Mime namespace which might have something useful for you.

Otherwise, I used Chilkat MIME .NET a long time ago and was happy with it.

like image 30
Ryan Farley Avatar answered Dec 30 '22 12:12

Ryan Farley