Skip to content

Releases: danzuep/MailKitSimplified

v2.9.0

15 Dec 01:22

Choose a tag to compare

Changes:

  • .NET 8.0 Target Framework added
  • fixed EnumerateOr SearchQuery
  • added SASL AuthenticationMechanism property for #44
  • added CustomAuthenticationMethod to EmailOptions for #44
  • SocketOptions used in Email_Options.Create_ClientAsync for #45

v2.8.0

21 Oct 15:51

Choose a tag to compare

Breaking Changes

  • changed from MailFolderClient.SentFolder.Value to MailFolderClient.SentFolder by hiding the lazy usage

Changes

  • added MailFolderClient.DraftsFolder for #43
  • added Drafts, Junk, and Trash special folders (was just Sent before)
  • added Top() and Query().GetMimeMessageEnvelopeBodyAsync()
  • changed MailFolderReader.CoreMessageItems to ItemsForMimeMessages()
  • changed MailFolderReader.Query method overloads to extension methods
  • moved CoreMessageItems to IMailReader.ItemsForMimeMessages()

v2.7.0

28 Sep 02:15

Choose a tag to compare

Changes

  • Added Top() method to return results sorted from newest to oldest. This makes it easier to get up and running with this library, as all other results are sorted from oldest to newest in ascending order (MailKit default).

v2.6.1

18 Sep 14:09

Choose a tag to compare

Breaking Change

  • Use Range().GetMimeMessagesAsync() instead of GetMimeMessagesAsync(range) to match the package style.
  • Use Items().GetMessageSummariesAsync() instead of GetMessageSummariesAsync(itemFilter) to match the package style.
  • Query().GetMessageSummariesAsync() returns results in ascending order now to match MailKit. Use the Linq.Reverse() method to get results in descending order again. The reason for doing this was to speed up the results and to make the Query() behaviour the same as using Skip().Take() or Range().
  • Query().GetMimeMessagesAsync() returns results in ascending order now to match GetMessageSummariesAsync for the reasons above.

Changes

  • simplified GetMessageSummariesAsync, GetMimeMessagesAsync and SaveAllAsync for Range values
  • added the obsolete attribute to methods that should use Range instead
  • generate a new messageId for the MimeMessage template
  • removed the slow result filtering from Range().GetMessageSummariesAsync() #38
  • Query() now overwrites Take to 250 to match MailKit behaviour
  • added ImapReceiverFactory and MailFolderMonitorFactory singletons #39
  • added Func<IMessageSummary, Task> to MailFolderMonitorFactory

v2.5.5

25 Aug 14:43

Choose a tag to compare

Changes:

  • Fixed issue with setting EmailReceiver.ProtocolLog to make it equivalent to EmailReceiver.ProtocolLogger:FileWriter:FilePath.
  • Stopped disposing services resolved from the container #31
  • Fix for uint.MaxValue Arithmetic Operation Overflow #32
  • Changed from uniqueIds.OrderBy(u => u.Id).ToList() to new UniqueIdSet(uniqueIds, SortOrder.Ascending) based on advice from Jeffrey Stedfast.
  • Added ReadMail.Range(new UniqueId(startUid), new UniqueId(endUid)) #35
  • Download Mime Message without Attachment #35

v2.5.4

19 Aug 16:19

Choose a tag to compare

Changes

  • Updated Sent Folder list.
  • Added MoveToSentAsync.

v2.5.2

11 Aug 14:21

Choose a tag to compare

Changes

  • Added more AddFlagsAsync usages for #22.
  • Added MoveToAsync to MailFolderClient for #23.
  • Fluent IMessageSummary MoveMessages, CopyMessages, DeleteMessages.
  • Added Exception builder and optional scoped services for #26.
  • Added SaveTemplateAsync and WithTemplateAsync for #26.

v2.5.0

29 Jul 17:14

Choose a tag to compare

Changes

  • Fixed issue #17 where MailFolderMonitor disposal was affecting ImapReceiver.
  • Added ImapReceiverFactory and MailFolderMonitorFactory.
  • Clone re-uses IImapClient except MailFolderMonitor that uses host and port to avoid async task race conditions.
  • Made it easier to create Senders and Receivers using an existing ISmtpClient or IImapClient respectively. This makes it easier to avoid a potential MessageNotFoundException if a two separate instances of SmtpClient or ImapClient are used.
  • Added FolderAccess.ReadWrite as an overload on SetFolder and added fluent AddFlagsAsync method for issue #22.
  • MailFolderMonitor IMailFolder now has ReadWrite permissions to make IMessageSummary methods easier.
  • Added optional FolderAccess overload to ImapReceiver.SetFolder which is used by ConnectMailFolderAsync.
  • Added optional SecureSocketOptions overload to ImapReceiver.SetPort which is used by ConnectAuthenticatedImapClientAsync (same for SMTP).
  • Added ImapCapabilities RemoveCapabilities ImapReceiver which is used by ConnectAuthenticatedImapClientAsync (same for SMTP).
  • Marked MailFolderClient obsolete as all functionality has moved to MailFolderReader.
  • Updated dependency versions.

v2.4.6

15 Jan 13:41
8a68320

Choose a tag to compare

Changes

  • Dispose of IImapReceiver from IMailFolderReader.

v2.4.5

15 Jan 09:05
4267141

Choose a tag to compare

Changes

  • Added _fetchClient.NoOpAsync() to re-sync with the idle client.