diff --git a/NEWS b/NEWS index a68d360fc..229b1d748 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,5 @@ -2.2.0a (2014-03-XX) -------------------- +2.2.1 (2014-03-XX) +------------------ Enhancements - updated Czech, Finnish, and Hungarian translations @@ -11,6 +11,7 @@ Bug fixes - fixed sorting of events list by calendar name (#2629) - fixed wrong date format leading to Android email syncing issues (#2609) - fixed possible exception when retrieving the default event reminder value (#2624) + - fixed encoding of mail folder name when creating a subfolder (#2637) 2.2.0 (2014-02-24) ------------------ diff --git a/SoObjects/Mailer/SOGoMailFolder.m b/SoObjects/Mailer/SOGoMailFolder.m index a649b5f46..abf4bf100 100644 --- a/SoObjects/Mailer/SOGoMailFolder.m +++ b/SoObjects/Mailer/SOGoMailFolder.m @@ -44,6 +44,7 @@ #import #import +#import #import #import @@ -293,7 +294,7 @@ static NSString *defaultUserID = @"anyone"; destURL = [[NSURL alloc] initWithScheme: [imap4URL scheme] host: [imap4URL host] path: [NSString stringWithFormat: @"%@%@", - path, newName]]; + path, [newName stringByEncodingImap4FolderName]]]; [destURL autorelease]; error = [imap4 moveMailboxAtURL: imap4URL toURL: destURL]; @@ -994,7 +995,7 @@ static NSString *defaultUserID = @"anyone"; if ([self imap4Connection]) { - error = [imap4 createMailbox: [self relativeImap4Name] + error = [imap4 createMailbox: [[self relativeImap4Name] stringByEncodingImap4FolderName] atURL: [container imap4URL]]; if (error) rc = NO; diff --git a/UI/MailerUI/UIxMailFolderActions.m b/UI/MailerUI/UIxMailFolderActions.m index 6e3c4e4d5..ebb7612a7 100644 --- a/UI/MailerUI/UIxMailFolderActions.m +++ b/UI/MailerUI/UIxMailFolderActions.m @@ -28,8 +28,11 @@ #import #import #import + #import #import +#import + #import #import @@ -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