aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
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)