Quote all specials in name as defined on RFC
[claws.git] / src / compose.c
index 2021d9fbf2d896e8eb5915315071ac763d8f83fd..b36c56dd60a8d291171dab055c854d0d0ba483e2 100644 (file)
@@ -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;                                               \
                                                                        \