From 755b86e1dae724503a13187cde93e8f55114b3d6 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 13 Oct 2005 04:58:57 +0000 Subject: fixed parsing of literal data (skip quotes) git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@640 ee746299-78ed-0310-b773-934348b2243d --- libsylph/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsylph') diff --git a/libsylph/imap.c b/libsylph/imap.c index 38bce92a..b5566797 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -3740,7 +3740,7 @@ static gint imap_cmd_ok(IMAPSession *session, GPtrArray *argbuf) while ((ok = imap_cmd_gen_recv(session, &buf)) == IMAP_SUCCESS) { g_string_append(str, buf); - if ((p = strrchr(buf, '{'))) { + if ((p = strrchr_with_skip_quote(buf, '"', '{'))) { /* literal */ p = strchr_cpy(p + 1, '}', obuf, sizeof(obuf)); len = atoi(obuf); -- cgit v1.2.3