aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-22 04:20:50 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-22 04:20:50 +0000
commit6e181791b71430f018d8a78fd943b825349f1128 (patch)
treea1b91af4467fcb16fd630a3ebbd29ba552796b04 /libsylph/imap.c
parent2cec57786293b83c859c0f00c429dac688a60803 (diff)
imap.c: quote additional chars.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@770 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r--libsylph/imap.c26
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;