From a7f7950d91c83acd75c0b0d55dec74ab85d38d6c Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Fri, 19 Sep 2025 16:47:16 +0200 Subject: [PATCH] fix(eas): use proper imap mech for EAS request when using openid --- SoObjects/Mailer/SOGoMailBaseObject.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SoObjects/Mailer/SOGoMailBaseObject.m b/SoObjects/Mailer/SOGoMailBaseObject.m index 68bf0fdb5..08cd8dc84 100644 --- a/SoObjects/Mailer/SOGoMailBaseObject.m +++ b/SoObjects/Mailer/SOGoMailBaseObject.m @@ -142,6 +142,10 @@ else imapAuthMech = nil; + //If ActiveSync, force the plain mech + if([[[[self context] request] requestHandlerKey] isEqualToString:@"Microsoft-Server-ActiveSync"]) + imapAuthMech = @"plain"; + return [NGImap4ConnectionManager defaultConnectionManager: imapAuthMech]; }