From 51e07fc3065498ce00b3fe2e626d039fb11bbf4b Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 27 May 2014 15:33:39 -0400 Subject: [PATCH] Fix over previous commit --- SoObjects/Mailer/SOGoMailAccount.m | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/SoObjects/Mailer/SOGoMailAccount.m b/SoObjects/Mailer/SOGoMailAccount.m index c4429b599..5bc3ff2ae 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -686,12 +686,6 @@ static NSString *inboxFolderName = @"INBOX"; client = [[self imap4Connection] client]; result = [client annotation: @"*" entryName: @"/comment" attributeName: @"value.priv"]; - if (![[result objectForKey: @"result"] boolValue]) - { - NSLog(@"IMAP annotation call failed."); - return folders; - } - e = [folderList objectEnumerator]; while (object = [e nextObject]) @@ -705,17 +699,14 @@ static NSString *inboxFolderName = @"INBOX"; if (![[nresult objectForKey: @"result"] boolValue]) { - // need to implement X-GUID query for Dovecot - this requires modification in SOPE to support following command: + // Need to implement X-GUID query for Dovecot - this requires modification in SOPE to support following command: // 1 list "" "*" return (status (x-guid)) -> this would avoid firing a command per folder to IMAP - //guid = [NSString stringWithFormat: @"%@-%@", [object substringFromIndex: 1], @"xxx" ]; nresult = [client status: [object substringFromIndex: 1] flags: [NSArray arrayWithObject: @"x-guid"]]; guid = [nresult objectForKey: @"x-guid"]; if (!guid) { guid = [NSString stringWithFormat: @"%@", [object substringFromIndex: 1]]; } - NSLog(@"tfu setannotation failed: %@", nresult ); - NSLog(@"tfu uniqueid folderid: %@", guid ); } }