aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--libsylph/imap.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 718e6faf..b6bc772e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-16
+
+ * libsylph/imap.c: imap_status(): fixed the parse failure of STATUS response
+ if a folder name contains brackets (sylpheed:35704).
+
2013-06-07
* config.guess
diff --git a/libsylph/imap.c b/libsylph/imap.c
index f844ba57..4c26e04b 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -3726,7 +3726,7 @@ static gint imap_status(IMAPSession *session, IMAPFolder *folder,
str = search_array_str(argbuf, "STATUS");
if (!str) THROW(IMAP_ERROR);
- str = strchr(str, '(');
+ str = strrchr_with_skip_quote(str, '"', '(');
if (!str) THROW(IMAP_ERROR);
str++;
while (*str != '\0' && *str != ')') {