diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-22 04:20:50 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-22 04:20:50 +0000 |
commit | 6e181791b71430f018d8a78fd943b825349f1128 (patch) | |
tree | a1b91af4467fcb16fd630a3ebbd29ba552796b04 | |
parent | 2cec57786293b83c859c0f00c429dac688a60803 (diff) |
imap.c: quote additional chars.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@770 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 6 | ||||
-rw-r--r-- | libsylph/imap.c | 26 |
3 files changed, 24 insertions, 13 deletions
@@ -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; |