What .NET Mime Parsing libraries are available?

I have a project that uses javax.mail.internet.MimeMessage and other related classes that process mime to receive the letters we receive. This needs to be ported to .NET.

What can a third-party or embedded library .NET use to replace the Java classes that I use?

EDIT: Has anything changed in the last 9 months since I asked this question?

+4
source share
7 answers

I recently published MimeKit , which is much more robust than any other .NET MIME open source XML parser library, and is an order of magnitude faster, and also because it is an actual stream parser and not a recursive descent parser (which also has the added benefit of using less memory).

It has full support for S / MIME v3.2 (including compression, which in fact does not support any of the other libraries that claim to be full support) and OpenPGP.

For SMTP, POP3, and IMAP, you can use my MailKit library, which supports many SASL authentication mechanisms, including XOAUTH2 (used by Google). The SMTP client supports PIPELINING, which can improve mail sending performance, while the IMAP client supports an increasing number of extensions, which also allow clients to optimize their bandwidth.

+10
source

I have not used javax.mail.internet.MimeMessage, so I can’t say how this compares, but .NET 2.0 and later have System.Net.Mime , which may have something useful for you.

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

+7
source

SharpMimeTools, which is free and open source.

http://anmar.eu.org/projects/sharpmimetools/

This is what I use in my application, BugTracker.NET , and it was very reliable.

+6
source

I used both and I agree with Ryan that the System.Net.Mime and sibling namespaces provide very similar functions. Anyway, I think you will find that API.Net is cleaner and easier to work with.

+2
source

I also need such a library. Looking for a mime processing library. I need to convert messages and attachments to PDF.
Here are some of the libraries that I have found so far. Open Source Libraries:

Commercial libraries:

  • Mime4net
  • Rebex
  • Chilcat
  • Aspose is the most expensive option I see.

(would add more links, but my account level does not allow me to do this)

I still understand them and have not tried it yet. You will probably start with SharpMime, as it is open source. There are several examples on the Mime4Net website. From what I see, none of them offer the PDF conversion that I need, but there are other libraries that I look at to accomplish this task.

+2
source

You can try the S / MIME library included in our Rebex Secure Mail component .

Features include:

  • High-level API (MailMessage - as seen in the mail client).
  • Low Level API (MIME Tree Access)
  • Auto-correcting code for distorted messages and messages generated by incorrect email clients.
  • the ability to read TNEF (also known as winmail.dat, created by Outlook)
  • S / MIME: Sign / Encrypt / Decrypt Messages
  • supports both .NET and .NET CF

Note the features , MailMessage Tutorial and S / MIME Tutorial . You can download it at www.rebex.net/secure-mail.net

+1
source

Try using Mail.dll IMAP component , it has been on the market for quite some time and is well tested.

using(Imap imap = new Imap()) { imap.Connect("imapServer"); imap.UseBestLogin("user", "password"); imap.SelectInbox(); List<long> uids = imap.SearchFlag(Flag.Unseen); foreach (long uid in uids) { byte[] eml = imap.GetMessageByUID(uid); IMail message = new MailBuilder() .CreateFromEml(eml); Console.WriteLine(message.Subject); } imap.Close(); } 

Please note that Mail.dll is a commercial product that I created.

You can download it here: http://www.limilabs.com/mail .

0
source

Source: https://habr.com/ru/post/1276385/


All Articles