From a03ae3ab6a8a0da744c107350daffcfdbe9a0bff Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 3 Jul 2012 06:04:34 +0000 Subject: imap_cmd_fetch_func(): made response parser more robust (fixes [sylpheed:35306] can't fetch message error). git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3131 ee746299-78ed-0310-b773-934348b2243d --- libsylph/imap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libsylph') diff --git a/libsylph/imap.c b/libsylph/imap.c index d9c98857..1f48253e 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -4185,7 +4185,8 @@ static gint imap_cmd_fetch_func(IMAPSession *session, gpointer data) g_free(buf); return IMAP_ERROR; } - if (strstr(buf, "FETCH") != NULL) break; + if (strstr(buf, "FETCH") != NULL && strstr(buf, "BODY") != NULL) + break; g_free(buf); } if (ok != IMAP_SUCCESS) -- cgit v1.2.3