From 9b0d1d604aa1e717fa31a04ef2b07ec25083cb9e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 24 Apr 2008 19:56:55 +0000 Subject: [PATCH] Monotone-Parent: 1c59437a5e028bce2f9751493f0e07ce162fb322 Monotone-Revision: 3bc6a3f032908c2a45f63b61002786602c6e678e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-04-24T19:56:55 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/LDAPSource.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index f3239afbe..d5cf51486 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -418,20 +418,20 @@ static int sizeLimit; intoContactEntry: (NSMutableDictionary *) contactEntry { NSEnumerator *emailFields; - NSString *currentFieldName, *value; + NSString *currentFieldName; NSMutableArray *emails; + NSArray *allValues; emails = [NSMutableArray new]; emailFields = [mailFields objectEnumerator]; while ((currentFieldName = [emailFields nextObject])) { - value = [[ldapEntry attributeWithName: currentFieldName] - stringValueAtIndex: 0]; - if (value) - [emails addObject: value]; + allValues = [[ldapEntry attributeWithName: currentFieldName] + allValues]; + [emails addObjectsFromArray: allValues]; } - [emails autorelease]; [contactEntry setObject: emails forKey: @"c_emails"]; + [emails release]; } - (void) _fillConstraints: (NGLdapEntry *) ldapEntry