Monotone-Parent: bdeecb17bba3ba4439fbdfd9d95154dcaf1b3e54

Monotone-Revision: 998f8668c2a6175352cb3f2d659db5aa04b0fa39

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-02-07T22:06:17
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2008-02-07 22:06:17 +00:00
parent e9d2295720
commit d94d271408
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2008-02-07 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* 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

View File

@ -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"];