Fix detection of mailbox type
This commit is contained in:
parent
fd40cb71ac
commit
ac06a4d4ce
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue