Monotone-Parent: 9e637be5876312fbc5e2a34d306cd7d8b73773d1

Monotone-Revision: e11d0b2861cf3888ff5f2fa58e01243c5de99a1d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-10-08T22:34:52
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-10-08 22:34:52 +00:00
parent 8621f4ced6
commit 768e3cf224
3 changed files with 65 additions and 38 deletions
+7 -13
View File
@@ -130,7 +130,8 @@ static NSLock *lock;
@"locality",
@"birthyear",
@"serialnumber",
@"calfburl", @"proxyaddresses",
@"calfburl",
@"proxyaddresses",
nil];
[commonSearchFields retain];
@@ -497,10 +498,6 @@ static NSLock *lock;
{
if (!searchAttributes)
{
NSUserDefaults *ud;
NSString *attribute;
ud = [NSUserDefaults standardUserDefaults];
searchAttributes = [NSMutableArray new];
[searchAttributes addObject: @"objectClass"];
if (CNField)
@@ -512,17 +509,14 @@ static NSLock *lock;
[searchAttributes addObjectsFromArray: commonSearchFields];
// Add SOGoLDAPContactInfoAttribute from user defaults
attribute = [ud stringForKey: @"SOGoLDAPContactInfoAttribute"];
if ([attribute length] > 0 &&
![searchAttributes containsObject: attribute])
[searchAttributes addObject: attribute];
if ([LDAPContactInfoAttribute length])
[searchAttributes addObjectUniquely: LDAPContactInfoAttribute];
// Add IMAP hostname from user defaults
if (IMAPHostField && [IMAPHostField length] > 0 &&
![searchAttributes containsObject: IMAPHostField])
[searchAttributes addObject: IMAPHostField];
if ([IMAPHostField length])
[searchAttributes addObjectUniquely: IMAPHostField];
}
return searchAttributes;
}