diff options
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r-- | mail/mail-format.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c index 6ed7aafdc8..5cfaa4f63a 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -850,12 +850,15 @@ write_address (MailDisplay *md, const CamelInternetAddress *addr, const char *fi email_disp = g_strdup ("???"); } - mail_html_write (md->html, md->stream, - "%s <<a href=\"mailto:%s\">%s</a>>", - have_name ? name_disp : "", - addr_url, - email_disp); - + if (have_name) { + mail_html_write (md->html, md->stream, + "%s <<a href=\"mailto:%s\">%s</a>>", + name_disp, addr_url, email_disp); + } else { + mail_html_write (md->html, md->stream, + "<a href=\"mailto:%s\">%s</a>", + addr_url, email_disp); + } } else { char *str; |