From b2f3585739a81b96d3e8e22db9ac8bb7b9edd58f Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 24 Nov 2016 11:39:05 -0500 Subject: [PATCH] (fix) don't check Dovecot conditions if we're using IMAP annotations --- SoObjects/Mailer/SOGoMailAccount.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SoObjects/Mailer/SOGoMailAccount.m b/SoObjects/Mailer/SOGoMailAccount.m index 9d5fb5c85..a915effe6 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -733,8 +733,9 @@ static NSString *inboxFolderName = @"INBOX"; // * LIST (\NonExistent \HasChildren) "/" shared // * LIST (\NonExistent \HasChildren) "/" shared/jdoe@example.com // * LIST (\HasNoChildren) "/" shared/jdoe@example.com/INBOX - else if (([[[result objectForKey: @"list"] objectForKey: currentFolder] indexOfObject: @"nonexistent"] != NSNotFound && - [[[result objectForKey: @"list"] objectForKey: currentFolder] indexOfObject: @"haschildren"] != NSNotFound)) + else if (!hasAnnotatemore && + ([[[result objectForKey: @"list"] objectForKey: currentFolder] indexOfObject: @"nonexistent"] != NSNotFound && + [[[result objectForKey: @"list"] objectForKey: currentFolder] indexOfObject: @"haschildren"] != NSNotFound)) guid = [NSString stringWithFormat: @"%@", currentFolder]; else {