From 92fcce8fc8a58b65f764548a269c1e29acdbc2fb Mon Sep 17 00:00:00 2001 From: wolfgang Date: Thu, 7 Feb 2008 22:06:27 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1360 d1b88da0-ebda-0310-925b-ed51d893ca5b --- ChangeLog | 4 + SoObjects/SOGo/SOGoUser.m | 8 +- .../ContactsUI/UIxContactsFilterPanel.wox | 3 - .../UIxContactsUserFolders.js | 91 ++++++++++--------- UI/WebServerResources/generic.css | 4 + 5 files changed, 62 insertions(+), 48 deletions(-) diff --git a/ChangeLog b/ChangeLog index 20676529..001304af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-02-07 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoUser.m ([SOGoUser -mailAccounts]): if the + loginname for the default mail account contains an "@", it should + be url-escaped to avoid confusing NSURL. + * SoObjects/SOGo/SOGoUserFolder.m ([-login]): removed useless method. ([SOGoUserFolder -ownerInContext:_ctx]): compute the owner name diff --git a/SoObjects/SOGo/SOGoUser.m b/SoObjects/SOGo/SOGoUser.m index 81187c6d..a9ec7d78 100644 --- a/SoObjects/SOGo/SOGoUser.m +++ b/SoObjects/SOGo/SOGoUser.m @@ -454,14 +454,16 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek"; { NSMutableDictionary *mailAccount, *identity; NSMutableArray *identities; - NSString *name, *fullName; + NSString *name, *fullName, *userName; NSArray *mails; unsigned int count, max; mailAccount = [NSMutableDictionary dictionary]; + userName = [[login stringByReplacingString: @"@" withString: @"%40"] + stringByEscapingURL]; name = [NSString stringWithFormat: @"%@@%@", - login, fallbackIMAP4Server]; - [mailAccount setObject: login forKey: @"userName"]; + userName, fallbackIMAP4Server]; + [mailAccount setObject: userName forKey: @"userName"]; [mailAccount setObject: fallbackIMAP4Server forKey: @"serverName"]; [mailAccount setObject: name forKey: @"name"]; diff --git a/UI/Templates/ContactsUI/UIxContactsFilterPanel.wox b/UI/Templates/ContactsUI/UIxContactsFilterPanel.wox index 046ae859..8f771ded 100644 --- a/UI/Templates/ContactsUI/UIxContactsFilterPanel.wox +++ b/UI/Templates/ContactsUI/UIxContactsFilterPanel.wox @@ -5,9 +5,6 @@ xmlns:const="http://www.skyrix.com/od/constant" xmlns:label="OGo:label" > - - -