aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-02-10 14:21:12 +0800
committerChris Toshok <toshok@src.gnome.org>2003-02-10 14:21:12 +0800
commit29d288066ba3f8ad75e1737eb82bfdc96b8d6983 (patch)
treecc58689bbe3a17e80d3bd4132d597e1ba3dd8a88 /addressbook/backend
parent0c46add40d66626845b0042f2904389846b0d237 (diff)
downloadgsoc2013-evolution-29d288066ba3f8ad75e1737eb82bfdc96b8d6983.tar
gsoc2013-evolution-29d288066ba3f8ad75e1737eb82bfdc96b8d6983.tar.gz
gsoc2013-evolution-29d288066ba3f8ad75e1737eb82bfdc96b8d6983.tar.bz2
gsoc2013-evolution-29d288066ba3f8ad75e1737eb82bfdc96b8d6983.tar.lz
gsoc2013-evolution-29d288066ba3f8ad75e1737eb82bfdc96b8d6983.tar.xz
gsoc2013-evolution-29d288066ba3f8ad75e1737eb82bfdc96b8d6983.tar.zst
gsoc2013-evolution-29d288066ba3f8ad75e1737eb82bfdc96b8d6983.zip
gone. (match_initials): gone. (book_query_sexp): remove the primary
2003-02-09 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c (sexp_initials): gone. (match_initials): gone. (book_query_sexp): remove the primary handling. (book_query_score): same. * backend/ebook/e-card.c (e_card_set_property): g_value_get_pointer => g_value_get_object for "category_list". * backend/ebook/e-book.c (struct _EBookPrivate): add a comment. * backend/pas/pas-backend-ldap.c (func_beginswith): performance at the cost of a tiny bit of correctness. If the ldap server doesn't support evolutionPerson don't query on fileAs, use sn (since that's effectively what gets used in the display when fileAs isn't supported.) svn path=/trunk/; revision=19863
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-book.c1
-rw-r--r--addressbook/backend/ebook/e-card.c2
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c10
3 files changed, 8 insertions, 5 deletions
diff --git a/addressbook/backend/ebook/e-book.c b/addressbook/backend/ebook/e-book.c
index 7cdca25d95..dd7b433ff8 100644
--- a/addressbook/backend/ebook/e-book.c
+++ b/addressbook/backend/ebook/e-book.c
@@ -35,6 +35,7 @@ struct _EBookPrivate {
GList *book_factories;
GList *iter;
+ /* cached capabilites */
char *cap;
gboolean cap_queried;
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index 38ee1ce224..70add9591d 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -2106,7 +2106,7 @@ e_card_set_property (GObject *object,
case PROP_CATEGORY_LIST:
if (card->categories)
g_object_unref(card->categories);
- card->categories = E_LIST(g_value_get_pointer(value));
+ card->categories = E_LIST(g_value_get_object(value));
if (card->categories)
g_object_ref(card->categories);
break;
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 3e0db0fca5..2c919c788b 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -2614,10 +2614,12 @@ func_beginswith(struct _ESExp *f, int argc, struct _ESExpResult **argv, void *da
str, str));
}
else if (!strcmp (ldap_attr, "fileAs")) {
- ldap_data->list = g_list_prepend(ldap_data->list,
- g_strdup_printf(
- "(|(fileAs=%s*)(&(!(fileAs=*))(sn=%s*)))",
- str, str));
+ if (ldap_data->bl->priv->evolutionPersonSupported)
+ ldap_data->list = g_list_prepend(ldap_data->list,
+ g_strdup_printf("(fileAs=%s*)", str));
+ else
+ ldap_data->list = g_list_prepend(ldap_data->list,
+ g_strdup_printf("(sn=%s*)", str));
}
else {
ldap_data->list = g_list_prepend(ldap_data->list,