aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-08-16 07:28:01 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-08-16 07:28:01 +0000
commite21d94c6fcb2112906f15be5b73864ea989358e7 (patch)
tree570fff74b25c433fe4660dd489ebb48320b19f3c /libsylph/imap.c
parenteb4f8d78128b94b40197527c7d5a560a1e50ee41 (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
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r--libsylph/imap.c2
1 files changed, 1 insertions, 1 deletions
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 != ')') {