[evolution-data-server] imapx: server flags can be integers



commit 672cfc0d448820a686511600570db10b39074cf1
Author: David Woodhouse <David Woodhouse intel com>
Date:   Sat Jul 31 16:31:23 2010 +0200

    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.

 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 451da87..9b40611 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -92,7 +92,7 @@ imapx_parse_flags(CamelIMAPXStream *stream, guint32 *flagsp, CamelFlag **user_fl
 	if (tok == '(') {
 		do {
 			tok = camel_imapx_stream_token(stream, &token, &len, NULL);
-			if (tok == IMAPX_TOK_TOKEN) {
+			if (tok == IMAPX_TOK_TOKEN || tok == IMAPX_TOK_INT) {
 				p = token;
 				// FIXME: ascii_toupper
 				while ((c=*p))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]