From 39255b193d077f152e559e39b32899e187d36b73 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 8 Jul 2020 13:19:12 -0400 Subject: [PATCH] fix(eas): handle noselect special folders in Dovecot --- SoObjects/Mailer/SOGoMailAccount.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SoObjects/Mailer/SOGoMailAccount.m b/SoObjects/Mailer/SOGoMailAccount.m index f2a5ce827..c955db2fa 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -875,7 +875,8 @@ static NSString *inboxFolderName = @"INBOX"; // * LIST (\NonExistent \HasChildren) "/" shared/jdoe@example.com // * LIST (\HasNoChildren) "/" shared/jdoe@example.com/INBOX else if (!hasAnnotatemore && - ([[[result objectForKey: @"list"] objectForKey: currentFolder] indexOfObject: @"nonexistent"] != NSNotFound && + (([[[result objectForKey: @"list"] objectForKey: currentFolder] indexOfObject: @"nonexistent"] != NSNotFound || + [[[result objectForKey: @"list"] objectForKey: currentFolder] indexOfObject: @"noselect"] != NSNotFound)&& [[[result objectForKey: @"list"] objectForKey: currentFolder] indexOfObject: @"haschildren"] != NSNotFound)) guid = [NSString stringWithFormat: @"%@", currentFolder]; else