diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-08-16 07:28:01 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-08-16 07:28:01 +0000 |
commit | e21d94c6fcb2112906f15be5b73864ea989358e7 (patch) | |
tree | 570fff74b25c433fe4660dd489ebb48320b19f3c | |
parent | eb4f8d78128b94b40197527c7d5a560a1e50ee41 (diff) |
fixed the parse failure of STATUS response if a folder name contains brackets (sylpheed:35704).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3272 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libsylph/imap.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 != ')') { |