Looks like we assume that the authentication is always correct and retry every time.
We need to revisit this in the future.
info: MyImapDownloader.EmailDownloadService[0]
Connecting to IMAP server mail.mailo.com:993
fail: MyImapDownloader.EmailDownloadService[0]
Error during email download batch operation
MailKit.Security.AuthenticationException: Authenticate error
at MailKit.Net.Imap.ImapClient.AuthenticateAsync(Encoding encoding, ICredentials credentials, CancellationToken cancellationToken)
at MyImapDownloader.EmailDownloadService.ConnectToImapServerAsync(ImapClient client, CancellationToken cancellationToken) in /home/kushal/src/dotnet/MyImapDownloader/MyImapDownloader/EmailDownloadService.cs:line 123
at MyImapDownloader.EmailDownloadService.<>c__DisplayClass5_0.<<DownloadEmailsAsync>b__0>d.MoveNext() in /home/kushal/src/dotnet/MyImapDownloader/MyImapDownloader/EmailDownloadService.cs:line 69
info: MyImapDownloader.EmailDownloadService[0]
Disconnected from IMAP server
info: MyImapDownloader.EmailDownloadService[0]
Connecting to IMAP server mail.mailo.com:993
Looks like we assume that the authentication is always correct and retry every time.
We need to revisit this in the future.
info: MyImapDownloader.EmailDownloadService[0] Connecting to IMAP server mail.mailo.com:993 fail: MyImapDownloader.EmailDownloadService[0] Error during email download batch operation MailKit.Security.AuthenticationException: Authenticate error at MailKit.Net.Imap.ImapClient.AuthenticateAsync(Encoding encoding, ICredentials credentials, CancellationToken cancellationToken) at MyImapDownloader.EmailDownloadService.ConnectToImapServerAsync(ImapClient client, CancellationToken cancellationToken) in /home/kushal/src/dotnet/MyImapDownloader/MyImapDownloader/EmailDownloadService.cs:line 123 at MyImapDownloader.EmailDownloadService.<>c__DisplayClass5_0.<<DownloadEmailsAsync>b__0>d.MoveNext() in /home/kushal/src/dotnet/MyImapDownloader/MyImapDownloader/EmailDownloadService.cs:line 69 info: MyImapDownloader.EmailDownloadService[0] Disconnected from IMAP server info: MyImapDownloader.EmailDownloadService[0] Connecting to IMAP server mail.mailo.com:993