diff --git a/NEWS b/NEWS index 9e82cee02..b93ab715c 100644 --- a/NEWS +++ b/NEWS @@ -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) diff --git a/SoObjects/Mailer/SOGoMailAccount.m b/SoObjects/Mailer/SOGoMailAccount.m index 9dfd70d8a..f8342a65c 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -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];