aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-07-03 06:04:34 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-07-03 06:04:34 +0000
commita03ae3ab6a8a0da744c107350daffcfdbe9a0bff (patch)
tree072cfcb48790001f7c151fddd5a709100652e2c7 /libsylph/imap.c
parentf05b7dbc5b11fd383cd32556b8d28bd5b24cbd85 (diff)
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
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r--libsylph/imap.c3
1 files changed, 2 insertions, 1 deletions
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)