aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-04-20 00:06:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-04-20 00:06:12 +0800
commitd812fc96ba5647aebc61789855f498f17d689456 (patch)
treef825c0ec5fc6dd7e266df4a32bd1f290d503a5e3 /camel/providers
parentdafcdb315ad45b42ce2fcd7b026855a4c48dd65d (diff)
downloadgsoc2013-evolution-d812fc96ba5647aebc61789855f498f17d689456.tar.gz
gsoc2013-evolution-d812fc96ba5647aebc61789855f498f17d689456.tar.zst
gsoc2013-evolution-d812fc96ba5647aebc61789855f498f17d689456.zip
Fixed to not expect ]'s as part of the BODY atom token.
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. svn path=/trunk/; revision=25520
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap4/camel-imap4-folder.c8
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;