From 1c5a0b19c986988ea8fc3da3463b2674adaa12ae Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 27 Oct 2006 17:47:10 +0000 Subject: [PATCH] Monotone-Parent: 48d58a4e991ff751249e19642dfe41818aadaf08 Monotone-Revision: 76922c5ed8141c0367b26af025fdc509ce3fd7e8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-27T17:47:10 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ SoObjects/Contacts/SOGoContactLDAPFolder.m | 13 +++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 003a932d4..a1f7926a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2006-10-27 Wolfgang Sourdeau + * SoObjects/Contacts/SOGoContactLDAPFolder.m + ([SOGoContactLDAPFolder -_searchAttributes]): fixed typo to + request the "streetAddress" instead of the "streetaddress". + ([SOGoContactLDAPFolder -_qualifierForFilter:filter]): lookup + mails that *contain*, and not just *start with* the search + pattern. + * SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry -vCard]): mark address returned from LDAP as the work address. diff --git a/SoObjects/Contacts/SOGoContactLDAPFolder.m b/SoObjects/Contacts/SOGoContactLDAPFolder.m index d4a1080e5..a56bc2fcf 100644 --- a/SoObjects/Contacts/SOGoContactLDAPFolder.m +++ b/SoObjects/Contacts/SOGoContactLDAPFolder.m @@ -44,6 +44,7 @@ #define folderListingFields [NSArray arrayWithObjects: @"c_name", @"cn", \ @"displayName", \ + @"streetAddress", \ @"sn", @"givenname", @"l", \ @"mail", @"telephonenumber", \ @"mailNickname", \ @@ -205,7 +206,7 @@ @"nsAIMid", @"nscpaimscreenname", @"street", - @"streetaddress", + @"streetAddress", @"postOfficeBox", @"homePhone", @"cn", @@ -284,7 +285,7 @@ id obj; NGLdapEntry *entry; - NSLog (@"looking up name '%@'...", name); +// NSLog (@"looking up name '%@'...", name); /* first check attributes directly bound to the application */ obj = [super lookupName: name inContext: context acquire: NO]; @@ -334,7 +335,7 @@ @"(cn='%@*')" @"OR (sn='%@*')" @"OR (displayName='%@*')" - @"OR (mail='%@*')" + @"OR (mail='*%@*')" @"OR (telephoneNumber='*%@*')", filter, filter, filter, filter, filter]; qualifier = [EOQualifier qualifierWithQualifierFormat: qs]; @@ -359,9 +360,9 @@ if (filter && [filter length] > 0) { - NSLog (@"%@: fetching records matching '*%@*', sorted by '%@'" - @" in order %d", - self, filter, sortKey, sortOrdering); +// NSLog (@"%@: fetching records matching '*%@*', sorted by '%@'" +// @" in order %d", +// self, filter, sortKey, sortOrdering); records = [NSMutableArray new]; [records autorelease];