summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2010-07-31 16:33:26 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-07-31 16:33:26 +0200
commit32c1c223d4128dac89712acf7940994d63dc240d (patch)
tree2b7e86ba152b980a9e09cfafb2b363f9b054468e
parent16580ec5d6c350dce54402bebaafb313449d6a41 (diff)
downloadevolution-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.c2
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))