From 6e181791b71430f018d8a78fd943b825349f1128 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 22 Nov 2005 04:20:50 +0000 Subject: imap.c: quote additional chars. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@770 ee746299-78ed-0310-b773-934348b2243d --- libsylph/imap.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'libsylph') 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; -- cgit v1.2.3