From 6f487eb78c3765eca4921598dca0a9fb95e6b74b Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 30 Sep 2002 21:46:45 +0000 Subject: [ Fixes #31434 ] always retrieve the card from the db. use the summary 2002-09-30 Chris Toshok [ Fixes #31434 ] * backend/pas/pas-backend-file.c (do_summary_query): always retrieve the card from the db. use the summary strictly for matching, not for storing all information. This fixes completion of contact lists, since only 3 addresses were being stored and contact lists can have more. svn path=/trunk/; revision=18271 --- addressbook/backend/pas/pas-backend-file.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'addressbook/backend') diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index 542ab47c0b..29e6ab59b4 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -148,11 +148,17 @@ do_summary_query (PASBackendFile *bf, char *id = g_ptr_array_index (ids, i); char *vcard = NULL; +#if SUMMARY_STORES_ENOUGH_INFO + /* this is disabled for the time being because lists + can have more than 3 email addresses and the + summary only stores 3. */ + if (completion_search) { vcard = pas_backend_summary_get_summary_vcard (bf->priv->summary, id); } else { +#endif string_to_dbt (id, &id_dbt); memset (&vcard_dbt, 0, sizeof (vcard_dbt)); @@ -160,7 +166,9 @@ do_summary_query (PASBackendFile *bf, if (db_error == 0) vcard = g_strdup (vcard_dbt.data); +#if SUMMARY_STORES_ENOUGH_INFO } +#endif if (vcard) { cards = g_list_prepend (cards, vcard); -- cgit v1.2.3