aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-format.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6f39f5d053..780e1c5a81 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-09-26 Jon Trowbridge <trow@ximian.com>
+ * mail-format.c (write_address): Use camel_address_format,
+ not camel_address_encode.
+
* mail-display.c (html_button_press_event): Decode our URL before
extracting the address to pop up contact info.
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 029fb5ab4b..72c470fd42 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -828,7 +828,7 @@ write_address (MailDisplay *md, const CamelInternetAddress *addr, const char *fi
subaddr = camel_internet_address_new ();
camel_internet_address_add (subaddr, name, email);
- addr_txt = camel_address_encode (CAMEL_ADDRESS (subaddr));
+ addr_txt = camel_address_format (CAMEL_ADDRESS (subaddr));
addr_url = camel_url_encode (addr_txt, TRUE, NULL);
camel_object_unref (CAMEL_OBJECT (subaddr));
@@ -863,7 +863,7 @@ write_address (MailDisplay *md, const CamelInternetAddress *addr, const char *fi
mail_html_write (md->html, md->stream, "<i>%s</i>", str);
g_free (str);
}
-
+
g_free (name_arg);
g_free (email_arg);
g_free (name_disp);