From ac010063981efebfa73f667d4e7d8c9a3a24671e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sun, 7 Jul 2024 20:16:41 +0200 Subject: [PATCH] Handle BAD respose on first try for ID command for IMAP. --- Wino.Core/Integration/ImapClientPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wino.Core/Integration/ImapClientPool.cs b/Wino.Core/Integration/ImapClientPool.cs index f72e07e4..b49556f7 100644 --- a/Wino.Core/Integration/ImapClientPool.cs +++ b/Wino.Core/Integration/ImapClientPool.cs @@ -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; }