diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-01-20 11:46:13 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-01-20 11:46:13 +0800 |
commit | f741fbe53dbb2cf68e2c9347ac910413f9a50ecd (patch) | |
tree | 2a42a931a917fded165170e10422ac18f12c45a6 | |
parent | 745193f7fbb6d81bb1be72d42a013e014a1da4a9 (diff) | |
download | gsoc2013-evolution-f741fbe53dbb2cf68e2c9347ac910413f9a50ecd.tar gsoc2013-evolution-f741fbe53dbb2cf68e2c9347ac910413f9a50ecd.tar.gz gsoc2013-evolution-f741fbe53dbb2cf68e2c9347ac910413f9a50ecd.tar.bz2 gsoc2013-evolution-f741fbe53dbb2cf68e2c9347ac910413f9a50ecd.tar.lz gsoc2013-evolution-f741fbe53dbb2cf68e2c9347ac910413f9a50ecd.tar.xz gsoc2013-evolution-f741fbe53dbb2cf68e2c9347ac910413f9a50ecd.tar.zst gsoc2013-evolution-f741fbe53dbb2cf68e2c9347ac910413f9a50ecd.zip |
If the name is empty string, use the address.
2001-01-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_generate_reply): If the name is empty
string, use the address.
svn path=/trunk/; revision=7663
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-format.c | 3 |
2 files changed, 7 insertions, 1 deletions
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 <fejj@ximian.com> + + * mail-format.c (mail_generate_reply): If the name is empty + string, use the address. + 2001-01-19 Dan Winship <danw@ximian.com> * 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) { |