From 71ca4a7b47d99c8fe02169bb785063c63ab0fce6 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 16464f291..c719fb069 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -797,8 +797,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 {