mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 14:43:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user