diff options
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/imap4/camel-imap4-folder.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/camel/providers/imap4/camel-imap4-folder.c b/camel/providers/imap4/camel-imap4-folder.c index a88ca71857..af82fdf8a3 100644 --- a/camel/providers/imap4/camel-imap4-folder.c +++ b/camel/providers/imap4/camel-imap4-folder.c @@ -520,7 +520,13 @@ untagged_fetch (CamelIMAP4Engine *engine, CamelIMAP4Command *ic, guint32 index, if (token->token != CAMEL_IMAP4_TOKEN_ATOM) goto unexpected; - if (!strcmp (token->v.atom, "BODY[]")) { + if (!strcmp (token->v.atom, "BODY[")) { + if (camel_imap4_engine_next_token (engine, token, ex) == -1) + goto exception; + + if (token->token != ']') + goto unexpected; + if (camel_imap4_engine_next_token (engine, token, ex) == -1) goto exception; |