From 12779b41a3dffb4c2e3e571c3f85fc5bb6aa6f68 Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Mon, 28 Oct 2013 10:52:52 +0100 Subject: [PATCH] Quote all specials in name as defined on RFC See http://tools.ietf.org/html/rfc5322#section-3.2.3 --- src/compose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compose.c b/src/compose.c index 2021d9fbf..b36c56dd6 100644 --- a/src/compose.c +++ b/src/compose.c @@ -4733,7 +4733,7 @@ compose_current_mail_account(void) #define QUOTE_IF_REQUIRED(out, str) \ { \ - if (*str != '"' && strpbrk(str, ",.[]<>")) { \ + if (*str != '"' && strpbrk(str, ",.:;[]<>()@\\")) { \ gchar *__tmp; \ gint len; \ \ @@ -4761,7 +4761,7 @@ compose_current_mail_account(void) #define QUOTE_IF_REQUIRED_NORMAL(out, str, errret) \ { \ - if (*str != '"' && strpbrk(str, ",.[]<>")) { \ + if (*str != '"' && strpbrk(str, ",.:;[]<>()@\\")) { \ gchar *__tmp; \ gint len; \ \ -- 2.25.1