diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-11-10 00:53:29 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-11-10 00:53:29 +0800 |
commit | df5bede1f424f7829ddee0ec3d93e0bc47283c75 (patch) | |
tree | 7d45926222a37618049dce11c575e440366dce02 /camel/providers/imap4/camel-imap4-command.c | |
parent | d8302b46aadfe37519d2e088681cada044c92d10 (diff) | |
download | gsoc2013-evolution-df5bede1f424f7829ddee0ec3d93e0bc47283c75.tar gsoc2013-evolution-df5bede1f424f7829ddee0ec3d93e0bc47283c75.tar.gz gsoc2013-evolution-df5bede1f424f7829ddee0ec3d93e0bc47283c75.tar.bz2 gsoc2013-evolution-df5bede1f424f7829ddee0ec3d93e0bc47283c75.tar.lz gsoc2013-evolution-df5bede1f424f7829ddee0ec3d93e0bc47283c75.tar.xz gsoc2013-evolution-df5bede1f424f7829ddee0ec3d93e0bc47283c75.tar.zst gsoc2013-evolution-df5bede1f424f7829ddee0ec3d93e0bc47283c75.zip |
Handle not getting the CRLF pair together. Also don't require that we have
2004-11-09 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-stream.c (camel_imap4_stream_line):
Handle not getting the CRLF pair together. Also don't require that
we have at least 3 bytes in the read buffer as it is possible we
don't have that much (see bug #69160).
2004-11-08 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_subscribe_folder):
Note the folder-info just subscribed.
(imap4_unsubscribe_folder): Unnote the folder-info.
svn path=/trunk/; revision=27875
Diffstat (limited to 'camel/providers/imap4/camel-imap4-command.c')
-rw-r--r-- | camel/providers/imap4/camel-imap4-command.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/camel/providers/imap4/camel-imap4-command.c b/camel/providers/imap4/camel-imap4-command.c index b01abe9141..e869bee9c3 100644 --- a/camel/providers/imap4/camel-imap4-command.c +++ b/camel/providers/imap4/camel-imap4-command.c @@ -602,7 +602,7 @@ camel_imap4_command_step (CamelIMAP4Command *ic) goto exception; } else if (token.token == CAMEL_IMAP4_TOKEN_ATOM && !strcmp (token.v.atom, ic->tag)) { /* we got "<tag> OK/NO/BAD" */ - fprintf (stderr, "got %s response\n", token.v.atom); + d(fprintf (stderr, "got %s response\n", token.v.atom)); if (camel_imap4_engine_next_token (engine, &token, &ic->ex) == -1) goto exception; @@ -616,7 +616,7 @@ camel_imap4_command_step (CamelIMAP4Command *ic) result = CAMEL_IMAP4_RESULT_BAD; if (result == CAMEL_IMAP4_RESULT_NONE) { - fprintf (stderr, "expected OK/NO/BAD but got %s\n", token.v.atom); + d(fprintf (stderr, "expected OK/NO/BAD but got %s\n", token.v.atom)); goto unexpected; } @@ -634,18 +634,22 @@ camel_imap4_command_step (CamelIMAP4Command *ic) goto exception; } } else { +#if d(!)0 fprintf (stderr, "expected anything but this: "); unexpected_token (&token); fprintf (stderr, "\n"); +#endif goto unexpected; } break; } else { +#if d(!)0 fprintf (stderr, "wtf is this: "); unexpected_token (&token); fprintf (stderr, "\n"); +#endif unexpected: |