diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-10-28 23:19:57 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-10-28 23:19:57 +0800 |
commit | b374485568249c439f17c64f40320902fab37123 (patch) | |
tree | 991927e93476349534812a030bd85823629e8bad | |
parent | 4c25f4bd9eb0460afd6cc6a92fd55206df14dc79 (diff) | |
download | gsoc2013-evolution-b374485568249c439f17c64f40320902fab37123.tar.gz gsoc2013-evolution-b374485568249c439f17c64f40320902fab37123.tar.zst gsoc2013-evolution-b374485568249c439f17c64f40320902fab37123.zip |
Properly tokenise "\*" as a flag token. Fixes bug #68869.
2004-10-28 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap4-stream.c
(camel_imap4_stream_next_token): Properly tokenise "\*" as a flag
token. Fixes bug #68869.
svn path=/trunk/; revision=27758
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap4-stream.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index d3c7904bef..0492cd5b03 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2004-10-28 Jeffrey Stedfast <fejj@ximian.com> + + * providers/imap4/camel-imap4-stream.c + (camel_imap4_stream_next_token): Properly tokenise "\*" as a flag + token. Fixes bug #68869. + 2004-10-21 Björn Torkelsson <torkel@acc.umu.se> * camel-sasl-kerberos4.c: #include "camel-i18n.h" diff --git a/camel/providers/imap4/camel-imap4-stream.c b/camel/providers/imap4/camel-imap4-stream.c index f26c3c12b7..629a86f7d8 100644 --- a/camel/providers/imap4/camel-imap4-stream.c +++ b/camel/providers/imap4/camel-imap4-stream.c @@ -533,6 +533,10 @@ camel_imap4_stream_next_token (CamelIMAP4Stream *stream, camel_imap4_token_t *to goto refill; } + /* handle the \* case */ + if ((inptr - start) == 1 && *inptr == '*') + inptr++; + if ((inptr - start) > 1) { token_save (stream, start, inptr - start); |