Fix Sieve path of mailboxes for filter editor

pull/218/merge
Francis Lachapelle 2017-11-23 14:14:29 -05:00
parent 1d90aa748d
commit 30c361a56b
2 changed files with 4 additions and 3 deletions

1
NEWS
View File

@ -37,6 +37,7 @@ Bug fixes
- [web] prevent the creation of empty contact categories
- [web] fixed mail composition from message headers (#4335)
- [web] restore messages selection after automatic refresh (#4330)
- [web] fixed path of destination mailbox in Sieve filter editor
- [eas] hebrew folders encoding problem using EAS (#4240)
- [eas] avoid sync requests for shared folders every second (#4275)

View File

@ -555,10 +555,10 @@ static NSString *inboxFolderName = @"INBOX";
nil];
if (sieveFolderUTF8Encoding)
sievePath = [folderPath stringByDecodingImap4FolderName];
sievePath = [currentPath stringByDecodingImap4FolderName];
else
sievePath = folderPath;
[folder setObject: [sievePath substringFromIndex: 1] forKey: @"sievePath"];
sievePath = currentPath;
[folder setObject: sievePath forKey: @"sievePath"];
// Either add this new folder to its parent or the list of root folders
[folders addObject: folder];