sync one left change in imap.c.
authorHiroyuki Yamamoto <hiro-y@kcn.ne.jp>
Thu, 2 May 2002 08:12:04 +0000 (08:12 +0000)
committerHiroyuki Yamamoto <hiro-y@kcn.ne.jp>
Thu, 2 May 2002 08:12:04 +0000 (08:12 +0000)
ChangeLog.claws
configure.in
src/imap.c

index bc444fdb9bdfaa9d32881f31e45b00ddfedbe6cc..2962283f16864fa1649fdacf03c17f75e746a20a 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-02 [hiro]      0.7.5claws6
+
+       * src/imap.c
+               sync the change for QUOTE_IF_REQUIRED() macro with 0.7.5cvs7.
+
 2002-05-02 [paul]      0.7.5claws5
 
        * src/compose.c
index 8a63cf66c3a9a9db13376fa30db287ad70ecbd3a..9d0bc90be65618b27c0ba3c0a5a993d1508cef6e 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws5
+EXTRA_VERSION=claws6
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index a7799353303dd23f705dac6f2ed463e8afca5783..93d24e8aae22ea49ae7cc1725e6654a18f5fdb41 100644 (file)
 #define IMAPS_PORT     993
 #endif
 
-#define QUOTE_IF_REQUIRED(out, str) \
-{ \
-       if (*str != '"' && strchr(str, ' ')) { \
-               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;