diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/imap.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c index b5566797..2698581f 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -58,19 +58,19 @@ #define IMAP_COPY_LIMIT 200 #define IMAP_CMD_LIMIT 1000 -#define QUOTE_IF_REQUIRED(out, str) \ -{ \ - if (*str != '"' && strpbrk(str, " \t(){}%*") != NULL) { \ - gchar *__tmp; \ - gint len; \ - \ - len = strlen(str) + 3; \ - Xalloca(__tmp, len, return IMAP_ERROR); \ - g_snprintf(__tmp, len, "\"%s\"", str); \ - out = __tmp; \ - } else { \ - Xstrdup_a(out, str, return IMAP_ERROR); \ - } \ +#define QUOTE_IF_REQUIRED(out, str) \ +{ \ + if (*str != '"' && strpbrk(str, " \t(){}[]%&*") != NULL) { \ + gchar *__tmp; \ + gint len; \ + \ + len = strlen(str) + 3; \ + Xalloca(__tmp, len, return IMAP_ERROR); \ + g_snprintf(__tmp, len, "\"%s\"", str); \ + out = __tmp; \ + } else { \ + Xstrdup_a(out, str, return IMAP_ERROR); \ + } \ } static GList *session_list = NULL; |