diff options
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap4-folder.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 09532b6512..64f69d86d1 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2004-04-19 Jeffrey Stedfast <fejj@ximian.com> + + * providers/imap4/camel-imap4-folder.c (untagged_fetch): Fixed to + not expect ]'s as part of the BODY atom token. + 2004-04-16 Jeffrey Stedfast <fejj@ximian.com> * camel-vee-store.c (change_folder): (flags & 0) will never be 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; |