aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-folder-summary.c16
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 <fejj@helixcode.com>
+
+ * camel-folder-summary.c (camel_summary_format_address): Decode
+ the resulting string.
+
2000-10-06 Chris Toshok <toshok@helixcode.com>
* 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;
}