diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2010-07-31 16:33:26 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-07-31 16:33:26 +0200 |
commit | 32c1c223d4128dac89712acf7940994d63dc240d (patch) | |
tree | 2b7e86ba152b980a9e09cfafb2b363f9b054468e | |
parent | 16580ec5d6c350dce54402bebaafb313449d6a41 (diff) | |
download | evolution-data-server-32c1c223d4128dac89712acf7940994d63dc240d.tar.gz |
imapx: server flags can be integers
A user on IRC reported a server which was reporting '1' (without the
quotes) as one of the available PERMANENTFLAGS. This caused imapx to
abort the connection after failing to parse the flags.
(cherry picked from commit 672cfc0d448820a686511600570db10b39074cf1)
-rw-r--r-- | camel/providers/imapx/camel-imapx-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c index d51c7be68..0157bbcb6 100644 --- a/camel/providers/imapx/camel-imapx-utils.c +++ b/camel/providers/imapx/camel-imapx-utils.c @@ -98,7 +98,7 @@ imapx_parse_flags(CamelIMAPXStream *stream, guint32 *flagsp, CamelFlag **user_fl if (tok == '(') { do { tok = camel_imapx_stream_token(stream, &token, &len, ex); - if (tok == IMAPX_TOK_TOKEN) { + if (tok == IMAPX_TOK_TOKEN || tok == IMAPX_TOK_INT) { p = token; // FIXME: ascii_toupper while ((c=*p)) |