Handle BAD respose on first try for ID command for IMAP.

This commit is contained in:
Burak Kaan Köse
2024-07-07 20:16:41 +02:00
parent ade8654cc4
commit ac01006398

View File

@@ -81,7 +81,7 @@ namespace Wino.Core.Integration
{
await client.IdentifyAsync(_implementation);
}
catch (ImapCommandException commandException) when (commandException.Response == ImapCommandResponse.No)
catch (ImapCommandException commandException) when (commandException.Response == ImapCommandResponse.No || commandException.Response == ImapCommandResponse.Bad)
{
mustDoPostAuthIdentification = true;
}