add check for '.' to QUOTE_IF_REQUIRED
[claws.git] / src / compose.c
index f641b8a39c2255298768ea02e8499fedbb7b2a69..7b106fa5358e1880448f51f1950d9f259a052f56 100644 (file)
@@ -3635,7 +3635,8 @@ static void compose_write_attach(Compose *compose, FILE *fp)
 
 #define QUOTE_IF_REQUIRED(out, str)                    \
 {                                                      \
-       if (*str != '"' && strchr(str, ',')) {          \
+       if (*str != '"' && (strchr(str, ',')            \
+                       || strchr(str, '.'))) {         \
                gchar *__tmp;                           \
                gint len;                               \
                                                        \