aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-command.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-25 04:14:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-25 04:14:59 +0800
commitf1e6e913a674ce5deb47611a3d1d2ed3047a644c (patch)
tree53dd77717a25a3a68f28b150b7b7185f7bd26bb2 /camel/providers/imap/camel-imap-command.c
parentbe5f3c160c66c42592bbb5e3697231f2ba9a40c3 (diff)
downloadgsoc2013-evolution-f1e6e913a674ce5deb47611a3d1d2ed3047a644c.tar
gsoc2013-evolution-f1e6e913a674ce5deb47611a3d1d2ed3047a644c.tar.gz
gsoc2013-evolution-f1e6e913a674ce5deb47611a3d1d2ed3047a644c.tar.bz2
gsoc2013-evolution-f1e6e913a674ce5deb47611a3d1d2ed3047a644c.tar.lz
gsoc2013-evolution-f1e6e913a674ce5deb47611a3d1d2ed3047a644c.tar.xz
gsoc2013-evolution-f1e6e913a674ce5deb47611a3d1d2ed3047a644c.tar.zst
gsoc2013-evolution-f1e6e913a674ce5deb47611a3d1d2ed3047a644c.zip
Use the new readline function.
2002-05-24 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-command.c (imap_read_untagged): Use the new readline function. * providers/imap/camel-imap-store.c (connect_to_server): Use the new camel_imap_store_readline() function which doesn't suck quite as bad as the original camel_remote_store_recv_line() function. (camel_imap_store_readline): New function to replace camel_remote_store_recv_line(). This function is at least safe with embedded nul chars. Not that any of our callers use it *sigh*. svn path=/trunk/; revision=17012
Diffstat (limited to 'camel/providers/imap/camel-imap-command.c')
-rw-r--r--camel/providers/imap/camel-imap-command.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c
index b0df0deefc..4309e18ddd 100644
--- a/camel/providers/imap/camel-imap-command.c
+++ b/camel/providers/imap/camel-imap-command.c
@@ -290,7 +290,7 @@ camel_imap_command_response (CamelImapStore *store, char **response,
CamelImapResponseType type;
char *respbuf;
- if (camel_imap_store_recv_line (store, &respbuf, ex) < 0) {
+ if (camel_imap_store_readline (store, &respbuf, ex) < 0) {
CAMEL_IMAP_STORE_UNLOCK (store, command_lock);
return CAMEL_IMAP_RESPONSE_ERROR;
}
@@ -457,10 +457,6 @@ imap_read_untagged (CamelImapStore *store, char *line, CamelException *ex)
* against any completely correct server.
* - WU-imapd 12.264 (at least) will cheerily pass
* NULs along if they are embedded in the message
- * - The only cause of embedded NULs we've seen is an
- * Evolution base64-encoder bug that sometimes
- * inserts a NUL into the last line when it
- * shouldn't.
*/
s = d = str->str + 1;
@@ -493,7 +489,7 @@ imap_read_untagged (CamelImapStore *store, char *line, CamelException *ex)
g_ptr_array_add (data, str);
/* Read the next line. */
- if (camel_imap_store_recv_line (store, &line, ex) < 0)
+ if (camel_imap_store_readline (store, &line, ex) < 0)
goto lose;
}