MailKit (2.15.0)
Published 2023-05-05 11:26:36 +10:00 by achi
Installation
dotnet nuget add source --name lers --username your_username --password your_token
dotnet add package --source lers --version 2.15.0 MailKit
About this package
MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices.
Features include:
- HTTP, Socks4, Socks4a and Socks5 proxy support.
- SASL Authentication via CRAM-MD5, DIGEST-MD5, LOGIN, NTLM, OAUTHBEARER, PLAIN, SCRAM-SHA-1, SCRAM-SHA-256, SCRAM-SHA-512 and XOAUTH2.
- A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8.
- A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG.
- A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, ANNOTATE, LIST-EXTENDED, ESORT, METADATA / METADATA-SERVER, NOTIFY, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE / CREATE-SPECIAL-USE, SEARCH=FUZZY, MOVE, UTF8=ACCEPT / UTF8=ONLY, LITERAL-, APPENDLIMIT, STATUS=SIZE, OBJECTID, REPLACE, SAVEDATE, XLIST, and X-GM-EXT1.
- Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported).
- Asynchronous versions of all methods that hit the network.
- S/MIME, OpenPGP, DKIM and ARC support via MimeKit.
- Microsoft TNEF support via MimeKit.
- Use DebugType=full for .NET Framework v4.x. (issue #1239)
- Updated GMail SSL certificate serial numbers and fingerprints.
- Small NTLM code improvements.
API Changes Since 2.0.x:
- Obsoleted SearchQuery.HasCustomFlags() and SearchQuery.DoesNotHaveCustomFlags(). These are now SearchQuery.HasKeywords() and SearchQuery.NotKeywords(), respectively.
- Obsoleted SearchQuery.DoesNotHaveFlags() in favor of SearchQuery.NotFlags().
- Obsoleted the IMessageSummary.UserFlags property in favor of IMessageSummary.Keywords.
- Obsoleted the MessageFlagsChangedEventArgs.UserFlags property in favor of MessageFlagsChangedEventArgs.Keywords.
- All IMailFolder.Fetch and IMailFolder.FetchAsync methods that took a HashSet userFlags argument now take an IEnumerable keywords argument. Note: this only affects you if your code used named method parameters (e.g. userFlags: myUserFlags).
Note to users upgrading from MailKit 1.x:
In order to authenticate using the XOAUTH2 SASL mechanism, you must now use the following approach:
client.Authenticate (new SaslMechanismOAuth2 (username, auth_token));
Dependencies
ID | Version | Target Framework |
---|---|---|
MimeKit | 2.15.0 | .NETFramework4.5 |
MimeKit | 2.15.0 | .NETFramework4.6 |
MimeKit | 2.15.0 | .NETFramework4.7 |
MimeKit | 2.15.0 | .NETFramework4.8 |
MimeKit | 2.15.0 | .NETStandard2.0 |
MimeKit | 2.15.0 | .NETStandard2.1 |
MimeKit | 2.15.0 | net5.0 |