aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-summary.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-07 05:38:36 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-07 05:38:36 +0800
commit8681790bb9981b358811229aa0ba50b667db1476 (patch)
tree33ef8a776cf253cf90584757f89e0698ed8f521a /camel/camel-folder-summary.c
parent61b3af5e540f5551d3be20926085f78809f177f6 (diff)
downloadgsoc2013-evolution-8681790bb9981b358811229aa0ba50b667db1476.tar.gz
gsoc2013-evolution-8681790bb9981b358811229aa0ba50b667db1476.tar.zst
gsoc2013-evolution-8681790bb9981b358811229aa0ba50b667db1476.zip
Decode the resulting string.
2000-10-06 Jeffrey Stedfast <fejj@helixcode.com> * camel-folder-summary.c (camel_summary_format_address): Decode the resulting string. svn path=/trunk/; revision=5773
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r--camel/camel-folder-summary.c16
1 files changed, 10 insertions, 6 deletions
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;
}