aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rw-r--r--libsylph/imap.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fd04a544..93463768 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-03
+
+ * libsylph/imap.c: imap_cmd_fetch_func(): made response parser more
+ robust (fixes [sylpheed:35306] can't fetch message error).
+
2012-06-25
* version 3.2.0
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)