From 8681790bb9981b358811229aa0ba50b667db1476 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 6 Oct 2000 21:38:36 +0000 Subject: Decode the resulting string. 2000-10-06 Jeffrey Stedfast * camel-folder-summary.c (camel_summary_format_address): Decode the resulting string. svn path=/trunk/; revision=5773 --- camel/ChangeLog | 5 +++++ camel/camel-folder-summary.c | 16 ++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index e550ff6855..286e92f3d7 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-10-06 Jeffrey Stedfast + + * camel-folder-summary.c (camel_summary_format_address): Decode + the resulting string. + 2000-10-06 Chris Toshok * providers/nntp/camel-nntp-grouplist.c: new file. diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index 5bbb240be1..4ee6be69f7 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -924,16 +924,20 @@ camel_summary_format_address(struct _header_raw *h, const char *name) { struct _header_address *addr; const char *text; - char *ret; + char *ret, *tmp; - text = header_raw_find(&h, name, NULL); - addr = header_address_decode(text); + text = header_raw_find (&h, name, NULL); + addr = header_address_decode (text); if (addr) { - ret = header_address_list_format(addr); - header_address_list_clear(&addr); + /* FIXME: perhaps decoding would be best done in header_address_list_format */ + tmp = header_address_list_format (addr); + ret = header_decode_string (tmp); + g_free (tmp); + header_address_list_clear (&addr); } else { - ret = g_strdup(text); + ret = g_strdup (text); } + return ret; } -- cgit