aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-05-13 15:56:11 +0800
committerMilan Crha <mcrha@redhat.com>2011-05-13 15:56:11 +0800
commit8807321506d4bed40c15e738679de995a5f98d86 (patch)
tree40076af063e679e7113e325affb5d2d86d0210b2 /addressbook
parent7af2865b7f964df81f59f8569955b399cae6bd79 (diff)
downloadgsoc2013-evolution-8807321506d4bed40c15e738679de995a5f98d86.tar
gsoc2013-evolution-8807321506d4bed40c15e738679de995a5f98d86.tar.gz
gsoc2013-evolution-8807321506d4bed40c15e738679de995a5f98d86.tar.bz2
gsoc2013-evolution-8807321506d4bed40c15e738679de995a5f98d86.tar.lz
gsoc2013-evolution-8807321506d4bed40c15e738679de995a5f98d86.tar.xz
gsoc2013-evolution-8807321506d4bed40c15e738679de995a5f98d86.tar.zst
gsoc2013-evolution-8807321506d4bed40c15e738679de995a5f98d86.zip
Bug #619347 - Decode QP in email in Contact List Editor
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-editor.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
index 08ddac7942..2616b84004 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c
+++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
@@ -316,11 +316,21 @@ contact_list_editor_render_destination (GtkTreeViewColumn *column,
EDestination *destination;
const gchar *textrep;
+ gchar *name = NULL, *email = NULL, *tofree = NULL;
gtk_tree_model_get (model, iter, 0, &destination, -1);
textrep = e_destination_get_textrep (destination, TRUE);
+
+ if (eab_parse_qp_email (textrep, &name, &email)) {
+ tofree = g_strdup_printf ("%s <%s>", name, email);
+ textrep = tofree;
+ g_free (name);
+ g_free (email);
+ }
+
g_object_set (renderer, "text", textrep, NULL);
g_object_unref (destination);
+ g_free (tofree);
}
static void