From f741fbe53dbb2cf68e2c9347ac910413f9a50ecd Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 20 Jan 2001 03:46:13 +0000 Subject: If the name is empty string, use the address. 2001-01-19 Jeffrey Stedfast * mail-format.c (mail_generate_reply): If the name is empty string, use the address. svn path=/trunk/; revision=7663 --- mail/ChangeLog | 5 +++++ mail/mail-format.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index c1f80534a3..78a3e462cf 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-01-19 Jeffrey Stedfast + + * mail-format.c (mail_generate_reply): If the name is empty + string, use the address. + 2001-01-19 Dan Winship * mail-display.c (pixmap_press): Update for e_popup_menu_run diff --git a/mail/mail-format.c b/mail/mail-format.c index 136afb8419..6e110fb806 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1656,11 +1656,12 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all) if (!composer) return NULL; + /* FIXME: should probably use a shorter date string */ sender = camel_mime_message_get_from (message); camel_internet_address_get (sender, 0, &name, &address); date = camel_mime_message_get_date (message, &offset); date_str = header_format_date (date, offset); - text = mail_tool_quote_message (message, _("On %s, %s wrote:\n"), date_str, name ? name : address); + text = mail_tool_quote_message (message, _("On %s, %s wrote:\n"), date_str, name && *name ? name : address); g_free (date_str); if (text) { -- cgit