diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-04-20 00:06:12 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-04-20 00:06:12 +0800 |
commit | d812fc96ba5647aebc61789855f498f17d689456 (patch) | |
tree | f825c0ec5fc6dd7e266df4a32bd1f290d503a5e3 | |
parent | dafcdb315ad45b42ce2fcd7b026855a4c48dd65d (diff) | |
download | gsoc2013-evolution-d812fc96ba5647aebc61789855f498f17d689456.tar gsoc2013-evolution-d812fc96ba5647aebc61789855f498f17d689456.tar.gz gsoc2013-evolution-d812fc96ba5647aebc61789855f498f17d689456.tar.bz2 gsoc2013-evolution-d812fc96ba5647aebc61789855f498f17d689456.tar.lz gsoc2013-evolution-d812fc96ba5647aebc61789855f498f17d689456.tar.xz 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
-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; |