From 71597fbdcf52013bfe24326d71485eae8bd77972 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 14 Apr 2011 21:16:45 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: 36439821e42cfcb830bfff9081d7e1318f1e92ab Monotone-Revision: be2628456056b13146b29cb36efc2deaf49d537f Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-04-14T21:16:45 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ UI/MailerUI/UIxMailAccountActions.m | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 12d5eb98f..26ba62df4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-04-14 Francis Lachapelle + * UI/MailerUI/UIxMailAccountActions.m (-composeAction): properly decode + submitted recipients and subjects (URL-encoded). + * SoObjects/SOGo/SOGoUserManager.m (-getImapLoginForUID:): we now consider the source parameter IMAPLoginFieldName. We continue to support SOGoForceIMAPLoginWithEmail at the domain/system level. diff --git a/UI/MailerUI/UIxMailAccountActions.m b/UI/MailerUI/UIxMailAccountActions.m index f596c0c88..f8d3f582f 100644 --- a/UI/MailerUI/UIxMailAccountActions.m +++ b/UI/MailerUI/UIxMailAccountActions.m @@ -30,6 +30,7 @@ #import #import #import +#import #import #import @@ -170,7 +171,7 @@ value = [[self request] formValueForKey: @"mailto"]; if ([value length] > 0) { - mailTo = [value componentsSeparatedByString: @","]; + mailTo = [[value stringByUnescapingURL] componentsSeparatedByString: @","]; [headers setObject: mailTo forKey: @"to"]; save = YES; } @@ -178,7 +179,7 @@ value = [[self request] formValueForKey: @"subject"]; if ([value length] > 0) { - [headers setObject: value forKey: @"subject"]; + [headers setObject: [value stringByUnescapingURL] forKey: @"subject"]; save = YES; }