Skip to content

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

Choose a tag to compare

@danzuep danzuep released this 01 Dec 08:47
· 274 commits to main since this release
abff55a

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.