From 7623a51a5bf0385156607181df18653485768698 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Thu, 30 Apr 2009 12:04:11 +0200 Subject: [PATCH] Avoid adding self contact email addresses on sending mails (fixes NB#113807) --- src/hildon2/modest-address-book.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hildon2/modest-address-book.c b/src/hildon2/modest-address-book.c index 0cd0ca8..aaf6413 100644 --- a/src/hildon2/modest-address-book.c +++ b/src/hildon2/modest-address-book.c @@ -705,6 +705,7 @@ async_get_contacts_cb (EBook *book, { GSList *addresses, *iter; GList *to_commit_contacts, *to_add_contacts; + EContact *self_contact; addresses = (GSList *) closure; @@ -712,6 +713,11 @@ async_get_contacts_cb (EBook *book, if (status != E_BOOK_ERROR_OK) goto frees; + self_contact = (EContact *) osso_abook_self_contact_get_default (); + if (self_contact) { + contacts = g_list_prepend (contacts, self_contact); + } + iter = addresses; to_commit_contacts = NULL; to_add_contacts = NULL; -- 1.7.9.5