[evolution-data-server/gnome-2-30] imapx: server flags can be integers
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-30] imapx: server flags can be integers
- Date: Sat, 31 Jul 2010 15:29:21 +0000 (UTC)
commit 32c1c223d4128dac89712acf7940994d63dc240d
Author: David Woodhouse <David Woodhouse intel com>
Date: Sat Jul 31 16:33:26 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.
(cherry picked from commit 672cfc0d448820a686511600570db10b39074cf1)
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 d51c7be..0157bbc 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]