Fix detection of mailbox type

pull/91/head
Francis Lachapelle 2014-12-11 08:23:15 -05:00
parent fd40cb71ac
commit ac06a4d4ce
1 changed files with 3 additions and 3 deletions

View File

@ -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";