diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-03-26 12:18:04 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-03-26 12:18:04 +0800 |
commit | 66704f04187928dcab171b6ac3250e9df641f97d (patch) | |
tree | a4497bdadd73e384072db2c0539e5fe5a78407b6 /camel/providers/imap4/camel-imap-engine.c | |
parent | 373a930405e4d2dd867bf8f8f81b9fbde47a9871 (diff) | |
download | gsoc2013-evolution-66704f04187928dcab171b6ac3250e9df641f97d.tar gsoc2013-evolution-66704f04187928dcab171b6ac3250e9df641f97d.tar.gz gsoc2013-evolution-66704f04187928dcab171b6ac3250e9df641f97d.tar.bz2 gsoc2013-evolution-66704f04187928dcab171b6ac3250e9df641f97d.tar.lz gsoc2013-evolution-66704f04187928dcab171b6ac3250e9df641f97d.tar.xz gsoc2013-evolution-66704f04187928dcab171b6ac3250e9df641f97d.tar.zst gsoc2013-evolution-66704f04187928dcab171b6ac3250e9df641f97d.zip |
No longer need to split ']' tokens from atom tokens due to a fixup in the
2004-03-25 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap4/camel-imap-engine.c
(camel_imap_engine_parse_resp_code): No longer need to split ']'
tokens from atom tokens due to a fixup in the ABNF grammar in
rfc3501.
* providers/imap4/camel-imap-specials.c: Changed ATOM_SPECIALS to
include ']' (this is an addition in rfc3501).
* providers/imap4/camel-imap-store.[c,h]: New Store class for
IMAP. Implemnted a bunch of but still got a ways to go.
svn path=/trunk/; revision=25192
Diffstat (limited to 'camel/providers/imap4/camel-imap-engine.c')
-rw-r--r-- | camel/providers/imap4/camel-imap-engine.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/camel/providers/imap4/camel-imap-engine.c b/camel/providers/imap4/camel-imap-engine.c index e7d6ce5899..d82bdd43d9 100644 --- a/camel/providers/imap4/camel-imap-engine.c +++ b/camel/providers/imap4/camel-imap-engine.c @@ -887,14 +887,6 @@ camel_imap_engine_parse_resp_code (CamelIMAPEngine *engine, CamelException *ex) return -1; } - if (token.v.atom[strlen (token.v.atom) - 1] == ']') { - /* split this atom ("FOO]") into 2 tokens: "FOO" and "]" */ - token.token = ']'; - token.v.atom[strlen (token.v.atom) - 1] = '\0'; - camel_imap_stream_unget_token (engine->istream, &token); - token.token = CAMEL_IMAP_TOKEN_ATOM; - } - for (code = 0; imap_resp_codes[code].name; code++) { if (!strcmp (imap_resp_codes[code].name, token.v.atom)) { if (engine->current && imap_resp_codes[code].save) { @@ -1054,14 +1046,6 @@ camel_imap_engine_parse_resp_code (CamelIMAPEngine *engine, CamelException *ex) goto exception; } - if (token.v.atom[strlen (token.v.atom) - 1] == ']') { - /* this should be the case, but if not - no big. */ - token.token = ']'; - token.v.atom[strlen (token.v.atom) - 1] = '\0'; - camel_imap_stream_unget_token (engine->istream, &token); - token.token = CAMEL_IMAP_TOKEN_ATOM; - } - if (resp != NULL) resp->v.copyuid.destset = g_strdup (token.v.atom); @@ -1071,17 +1055,10 @@ camel_imap_engine_parse_resp_code (CamelIMAPEngine *engine, CamelException *ex) /* extensions are of the form: "[" atom [SPACE 1*<any TEXT_CHAR except "]">] "]" */ - /* eat up the TEXT_CHARs, being careful to check atoms for a trailing ']' */ + /* eat up the TEXT_CHARs */ while (token.token != ']' && token.token != '\n') { if (camel_imap_engine_next_token (engine, &token, ex) == -1) goto exception; - - if (token.token == CAMEL_IMAP_TOKEN_ATOM) { - if (token.v.atom[strlen (token.v.atom) - 1] == ']') { - token.token = ']'; - break; - } - } } break; |