aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog9
-rw-r--r--addressbook/backend/pas/pas-backend-file.c8
2 files changed, 17 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 72b8ef43e8..9fe36a1bf7 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,12 @@
+2002-09-30 Chris Toshok <toshok@ximian.com>
+
+ [ 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.
+
2002-09-30 Aaron Weber <aaron@ximian.com>
* gui/widgets/e-addressbook-util.c (e_addressbook_show_multiple_cards): rephrase string on l. 213
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);