[evolution/webkit] Bug #250046 - Quote names in addresses when necessary in mail preview
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Bug #250046 - Quote names in addresses when necessary in mail preview
- Date: Mon, 11 Jul 2011 13:55:51 +0000 (UTC)
commit aac893b4bd196832c2d703c06bac6f6fee3a45eb
Author: Milan Crha <mcrha redhat com>
Date: Wed Dec 15 18:37:47 2010 +0100
Bug #250046 - Quote names in addresses when necessary in mail preview
mail/em-format-html.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index a62cc88..8adb0fe 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -2229,7 +2229,13 @@ efh_format_address (EMFormatHTML *efh, GString *out, struct _camel_header_addres
if (name && *name) {
gchar *real, *mailaddr;
- g_string_append_printf (out, "%s <", name);
+ if (strchr (a->name, ',') || strchr (a->name, ';'))
+ g_string_append_printf (out, ""%s"", name);
+ else
+ g_string_append (out, name);
+
+ g_string_append (out, " <");
+
/* rfc2368 for mailto syntax and url encoding extras */
if ((real = camel_header_encode_phrase ((guchar *)a->name))) {
mailaddr = g_strdup_printf("%s <%s>", real, a->v.addr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]