Fix detection of mailbox type

This commit is contained in:
Francis Lachapelle 2014-12-11 08:23:15 -05:00
parent fd40cb71ac
commit ac06a4d4ce

View file

@ -402,11 +402,11 @@ static NSString *inboxFolderName = @"INBOX";
if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", inboxFolderName]]) if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", inboxFolderName]])
folderType = @"inbox"; folderType = @"inbox";
else if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", [self draftsFolderNameInContext: context]]]) else if ([folderName isEqualToString: [self draftsFolderNameInContext: context]])
folderType = @"draft"; folderType = @"draft";
else if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", [self sentFolderNameInContext: context]]]) else if ([folderName isEqualToString: [self sentFolderNameInContext: context]])
folderType = @"sent"; folderType = @"sent";
else if ([folderName isEqualToString: [NSString stringWithFormat: @"/%@", [self trashFolderNameInContext: context]]]) else if ([folderName isEqualToString: [self trashFolderNameInContext: context]])
folderType = @"trash"; folderType = @"trash";
else else
folderType = @"folder"; folderType = @"folder";