aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-10-01 05:46:45 +0800
committerChris Toshok <toshok@src.gnome.org>2002-10-01 05:46:45 +0800
commit6f487eb78c3765eca4921598dca0a9fb95e6b74b (patch)
treee714ddf8bff765c105de1c5160f920e700a3b22a /addressbook
parent326d9cdc79b6b0df11cefbefc15a17a50a38c39f (diff)
downloadgsoc2013-evolution-6f487eb78c3765eca4921598dca0a9fb95e6b74b.tar
gsoc2013-evolution-6f487eb78c3765eca4921598dca0a9fb95e6b74b.tar.gz
gsoc2013-evolution-6f487eb78c3765eca4921598dca0a9fb95e6b74b.tar.bz2
gsoc2013-evolution-6f487eb78c3765eca4921598dca0a9fb95e6b74b.tar.lz
gsoc2013-evolution-6f487eb78c3765eca4921598dca0a9fb95e6b74b.tar.xz
gsoc2013-evolution-6f487eb78c3765eca4921598dca0a9fb95e6b74b.tar.zst
gsoc2013-evolution-6f487eb78c3765eca4921598dca0a9fb95e6b74b.zip
[ Fixes #31434 ] always retrieve the card from the db. use the summary
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. svn path=/trunk/; revision=18271
Diffstat (limited to 'addressbook')
-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);