Skip to content

Releases: danzuep/MailKitSimplified

v2.4.2

10 Jan 23:25
d56ba3c

Choose a tag to compare

Changes

  • Fixed System.InvalidOperationException when trying get mime message on the same thread as the idle client.

v2.4.1

10 Jan 23:22

Choose a tag to compare

Changes

  • Fixed System.InvalidOperationException when trying get mime message on the same thread as the idle client.

v2.4.0

12 Dec 03:35

Choose a tag to compare

Changes:

  • Added IMailReader Query(SearchQuery searchQuery) with SearchQuery.All by default.
  • Added IMailReader.Items() MessageSummaryItems filter.
  • Changed GetMimeMessagesAsync() to use SearchQuery by default so it is limited to 250, newest first.
  • Enabled IMailFolderReader Skip and Take options when a SearchQuery is used as well.
  • Added MailFolderReader.QueryBetweenDates, QueryKeywords and QueryMessageId methods.
  • Changed MailFolderReader to use IImapReceiver instead of IMailFolderClient.
  • Added InternetAddressList.Add() extension for email address strings.
  • Added PackageIcon.

v2.3.0

09 Dec 10:00

Choose a tag to compare

Changes:

  • Simplified GetMessageSummariesAsync _take count to endIndex calculation so -1 works now.
  • Added optional SetCustomAuthentication method so that SMTP and IMAP can work with OAuth2 and OAuthBearer.
  • Added optional RemoveAuthenticationMechanism method.
  • Changed MailFolderMonitor SetProcessMailOnConnect to SetIgnoreExistingMailOnConnect, also added SetMessageSummaryItems to IMailFolderMonitor.
  • Changed FolderMonitorOptions.ProcessMailOnConnect to IgnoreExistingMailOnConnect, and MessageSummaryParts to MessageSummaryItems.
  • Added IMailFolderClient.GetFolder().
  • Added QuoteForReply MimeMessage and IMessageSummary extension methods.
  • Added MimeMessage GetReplyMessage and GetForwardMessage extension methods.
  • Added IMessageSummary GetReplyMessage and GetForwardMessage extension methods.

v2.2.0

06 Dec 16:23

Choose a tag to compare

Changes:

  • Added SearchAsync to IMailFolderClient.
  • Added SearchBetweenDatesAsync and SearchKeywordsAsync to MailFolderClient.
  • Changed from ValueTask to Task to allow synchronous overloads.

v2.1.0

02 Dec 05:11

Choose a tag to compare

Changes:

  • Added fluent OnMessageArrival and departure methods to IMailFolderMonitor.
  • Renamed MessageFilter to MessageSummaryParts.
  • Changed IMailReader.Skip(continuous) to .Take(continuous) and added an example.
  • Fixed idle monitor departure queue, added Copy(), improved cancellation.
  • Updated NuGet packages.

v2.0.0: Merge pull request #7 from danzuep/feature/IdleClient

01 Dec 08:47
abff55a

Choose a tag to compare

MAJOR version change: New Core Feature!

  • Added IMailFolderMonitor which is an async idle client for receiving emails as they arrive in a mailbox.
  • Added MailFolderMonitor FolderMonitorOptions including ProcessMailOnConnect with the default value set to true.

Breaking Changes:

  • Simplified IImapReceiver by removing ReadFrom, Folder, and ConnectMailFolderClientAsync. Replaced them with MonitorFolder and MailFolderClient get methods, also renamed ConnectImapClientAsync to ConnectAuthenticatedImapClientAsync and changed DisconnectAsync to a Task for GetAwaiter().GetResult() to work.
  • Changed MailFolderClient to use IImapReceiver instead of IMailFolder so it integrates with the MailFolderClient get method better, which also makes it easier to test.
  • Merged the MailReader class into MailFolderReader instead of using inheritance.
  • Fixed SetProtocolLog usage.
  • Added protocolLogFileAppend which means the order of mailFolderName and protocolLog in ImapReceiver.Create() has been swapped.
  • Renamed the MailKitSimplified.Core namespace to MailKitSimplified.Generic and added generic SmtpOptions.
  • Cosole" log protocol now requires that as the key word.
  • Removed mailFolderName parameter overrides from lower-level methods.

v1.1.4

25 Nov 07:31

Choose a tag to compare

Changes

  • Added DefaultFrom
  • Added inline port feature
  • Added fluent host setup
  • Added DI options configuration

Full Changelog: v1.1.3...v1.1.4

v1.1.3

24 Nov 07:37

Choose a tag to compare

Changes:

  • Updated NuGet package dependencies to the latest versions.
  • Fixed Dockerfile sample.
  • Added IMailFolderReader usage.
  • Updated MimeMessageReader to allow for IMessageSummary as well.
  • Rewrote MailKitSimplified.Core and renamed it to Simplified MailKitSimplified.Generic.
  • Added IEmailWriter.Copy() method for templates.
  • File.Exists Attach check moved to TryAttach.
  • Fixed attachment file stream disposal.
  • Fixed MimeMessage BodyBuilder usage for linked resources.
  • Added default cancellation token to TrySendAsync.

v1.1.2

21 Nov 12:46

Choose a tag to compare

Changes

  • Added comments to interfaces.
  • Added MailFolderReader usages.
  • Better unit test coverage.