Webmail: fix encoding of subfolder name

Fixes #2637
This commit is contained in:
Francis Lachapelle
2014-03-06 09:50:53 -05:00
parent 0c99323db3
commit e4a21bcef5
3 changed files with 10 additions and 4 deletions
+4
View File
@@ -28,8 +28,11 @@
#import <NGObjWeb/WOContext+SoObjects.h>
#import <NGObjWeb/WOResponse.h>
#import <NGObjWeb/WORequest.h>
#import <NGImap4/NGImap4Connection.h>
#import <NGImap4/NGImap4Client.h>
#import <NGImap4/NSString+Imap4.h>
#import <EOControl/EOQualifier.h>
#import <Mailer/SOGoMailAccount.h>
@@ -60,6 +63,7 @@
folderName = [[context request] formValueForKey: @"name"];
if ([folderName length] > 0)
{
folderName = [folderName stringByEncodingImap4FolderName];
newFolder
= [co lookupName: [NSString stringWithFormat: @"folder%@", folderName]
inContext: context