aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja6
-rw-r--r--libsylph/imap.c26
3 files changed, 24 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 080aec1a..92fd46f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-11-22
+ * libsylph/imap.c: QUOTE_IF_REQUIRED(): add "[]&" to characters to be
+ quoted (for courier-imap).
+
+2005-11-22
+
* libsylph/prefs_common.[ch]
src/compose.c: remember the last window position.
* src/sourcewindow.c: win32: fixed window appeared always top-left.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index b55778cc..6ecdfc37 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,11 @@
2005-11-22
+ * libsylph/imap.c: QUOTE_IF_REQUIRED(): "[]&" をクオートする文字に
+ 追加(courier-imap 対策)。
+
+
+2005-11-22
+
* libsylph/prefs_common.[ch]
src/compose.c: 最後のウィンドウ位置を記憶するようにした。
* src/sourcewindow.c: win32: ウィンドウが常に左上に出現していたのを
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;