diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-08-31 06:25:15 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-08-31 06:25:15 +0800 |
commit | 6c1e363f9caa60ca7077f722443ff455a9fa8f7e (patch) | |
tree | 676ae2660708f9229d1681cfa475e2f9e2330a03 /camel/providers/imap/camel-imap-stream.c | |
parent | 61ec555e80b3e208c09a81bb2f2df530d947d360 (diff) | |
download | gsoc2013-evolution-6c1e363f9caa60ca7077f722443ff455a9fa8f7e.tar gsoc2013-evolution-6c1e363f9caa60ca7077f722443ff455a9fa8f7e.tar.gz gsoc2013-evolution-6c1e363f9caa60ca7077f722443ff455a9fa8f7e.tar.bz2 gsoc2013-evolution-6c1e363f9caa60ca7077f722443ff455a9fa8f7e.tar.lz gsoc2013-evolution-6c1e363f9caa60ca7077f722443ff455a9fa8f7e.tar.xz gsoc2013-evolution-6c1e363f9caa60ca7077f722443ff455a9fa8f7e.tar.zst gsoc2013-evolution-6c1e363f9caa60ca7077f722443ff455a9fa8f7e.zip |
Rewrote to ignore strings that look like server responses until it is sure
2000-08-30 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-store.c (camel_imap_fetch_command):
Rewrote to ignore strings that look like server responses until it
is sure that it has finished reading the literal string response.
svn path=/trunk/; revision=5124
Diffstat (limited to 'camel/providers/imap/camel-imap-stream.c')
-rw-r--r-- | camel/providers/imap/camel-imap-stream.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/camel/providers/imap/camel-imap-stream.c b/camel/providers/imap/camel-imap-stream.c index a59be149d9..8c04b75ec9 100644 --- a/camel/providers/imap/camel-imap-stream.c +++ b/camel/providers/imap/camel-imap-stream.c @@ -45,7 +45,7 @@ camel_imap_stream_class_init (CamelImapStreamClass *camel_imap_stream_class) CamelStreamClass *camel_stream_class = CAMEL_STREAM_CLASS (camel_imap_stream_class); - parent_class = CAMEL_STREAM_CLASS(camel_type_get_global_classfuncs (camel_stream_get_type ())); + parent_class = CAMEL_STREAM_CLASS (camel_type_get_global_classfuncs (camel_stream_get_type ())); /* virtual method overload */ camel_stream_class->read = stream_read; @@ -68,13 +68,14 @@ camel_imap_stream_get_type (void) static CamelType camel_imap_stream_type = CAMEL_INVALID_TYPE; if (camel_imap_stream_type == CAMEL_INVALID_TYPE) { - camel_imap_stream_type = camel_type_register (camel_stream_get_type (), "CamelImapStream", - sizeof (CamelImapStream), - sizeof (CamelImapStreamClass), - (CamelObjectClassInitFunc) camel_imap_stream_class_init, - NULL, - (CamelObjectInitFunc) camel_imap_stream_init, - (CamelObjectFinalizeFunc) finalize); + camel_imap_stream_type = + camel_type_register (camel_stream_get_type (), "CamelImapStream", + sizeof (CamelImapStream), + sizeof (CamelImapStreamClass), + (CamelObjectClassInitFunc) camel_imap_stream_class_init, + NULL, + (CamelObjectInitFunc) camel_imap_stream_init, + (CamelObjectFinalizeFunc) finalize); } return camel_imap_stream_type; @@ -129,7 +130,7 @@ stream_read (CamelStream *stream, char *buffer, size_t n) imap_stream->command); /* FIXME: exception is ignored */ camel_exception_clear (&ex); - + if (!result || status != CAMEL_IMAP_OK) { /* we got an error, dump this stuff */ g_free (result); |