From ac06a4d4ce513aec609ce7a50c3de8f4532c2936 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 11 Dec 2014 08:23:15 -0500 Subject: [PATCH] Fix detection of mailbox type --- SoObjects/Mailer/SOGoMailAccount.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SoObjects/Mailer/SOGoMailAccount.m b/SoObjects/Mailer/SOGoMailAccount.m index b6acd5413..dac006730 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -402,11 +402,11 @@ static NSString *inboxFolderName = @"INBOX"; if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", inboxFolderName]]) folderType = @"inbox"; - else if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", [self draftsFolderNameInContext: context]]]) + else if ([folderName isEqualToString: [self draftsFolderNameInContext: context]]) folderType = @"draft"; - else if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", [self sentFolderNameInContext: context]]]) + else if ([folderName isEqualToString: [self sentFolderNameInContext: context]]) folderType = @"sent"; - else if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", [self trashFolderNameInContext: context]]]) + else if ([folderName isEqualToString: [self trashFolderNameInContext: context]]) folderType = @"trash"; else folderType = @"folder";