This commit is contained in:
Ludovic Marcotte
2013-04-16 14:33:57 -04:00
parent 139c14d9e1
commit 62fee93d86
2 changed files with 9 additions and 5 deletions

View File

@@ -277,7 +277,7 @@
- (void) _fetchCN
{
cn = [self _fetchFieldForUser: @"cn"];
cn = [[self _fetchFieldForUser: @"cn"] stringByTrimmingSpaces];
[cn retain];
}
@@ -703,7 +703,8 @@
if (![fullName length])
fullName = login;
[identity setObject: fullName forKey: @"fullName"];
[identity setObject: [mails objectAtIndex: count] forKey: @"email"];
[identity setObject: [[mails objectAtIndex: count] stringByTrimmingSpaces]
forKey: @"email"];
if ([replyTo length] > 0)
[identity setObject: replyTo forKey: @"replyTo"];