mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-08 06:48:51 +00:00
Monotone-Parent: 1c59437a5e028bce2f9751493f0e07ce162fb322
Monotone-Revision: 3bc6a3f032908c2a45f63b61002786602c6e678e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-04-24T19:56:55 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user