[Evolution] Contacts / LDAP again.
- From: Greg Kerdemelidis <greg advance-enterprise com>
- To: evolution ximian com
- Subject: [Evolution] Contacts / LDAP again.
- Date: Thu, 24 Oct 2002 12:57:13 +1300
Sorry to be a pain about this, but category searching is a vital part of
organizing our contact db. I have been told that to use the category
search facilities, we need to upgrade to Beta 2, and migrate our LDAP
repository to using the new schema with "category" instead of
"categories". This isn't a problem, as I've knocked up a Perl script to
split them out, and will just update the DB.
However, the new schema is in the source dist, so I had a little dig
around to see what I could see.
I'm not convinced that category matching will work properly anyway.
According to the source for category_compare(), it concatenates the
category values and strcmp()'s them. Surely this isn't what is required?
A contact would need to be in all the categories to match?
category_compare (ECardSimple *ecard1, ECardSimple *ecard2)
char *categories1, *categories2;
categories1 = e_card_simple_get (ecard1,
categories2 = e_card_simple_get (ecard2,
equal = !strcmp (categories1, categories2);
maybe strstr() or something like that?
Is the source consistently using the new multivalued "category" field
Greg Kerdemelidis greg advance-enterprise com
Java/C/Perl Developer; Network Administrator
Advance Enterprise Ltd
] [Thread Prev