aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-command.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-11-09 08:41:09 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-11-09 08:41:09 +0800
commit64c19759bfa6820bd67b47d659ea7241f2efbd9b (patch)
tree6658ac64f2592da0df4bdb49838d1e7b83bd3943 /camel/providers/imap/camel-imap-command.h
parent4e96a9415be10f8184d8b3b2e47f879f78faeac7 (diff)
downloadgsoc2013-evolution-64c19759bfa6820bd67b47d659ea7241f2efbd9b.tar
gsoc2013-evolution-64c19759bfa6820bd67b47d659ea7241f2efbd9b.tar.gz
gsoc2013-evolution-64c19759bfa6820bd67b47d659ea7241f2efbd9b.tar.bz2
gsoc2013-evolution-64c19759bfa6820bd67b47d659ea7241f2efbd9b.tar.lz
gsoc2013-evolution-64c19759bfa6820bd67b47d659ea7241f2efbd9b.tar.xz
gsoc2013-evolution-64c19759bfa6820bd67b47d659ea7241f2efbd9b.tar.zst
gsoc2013-evolution-64c19759bfa6820bd67b47d659ea7241f2efbd9b.zip
Now takes a command-length argument so we can 1) avoid duping the command
2001-11-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-command.c (camel_imap_command_continuation): Now takes a command-length argument so we can 1) avoid duping the command string yet again, yay. 2) we now don't have to worry about embedded nul-chars screwing us over (we still need to avoid allowing them into the string but at least now it won't mess us up). * providers/imap/camel-imap-folder.c (do_append): Instead of appending a nul char to the end of the byte array and then passing that off as if it were a string to camel_imap_command_continuation, instead pass the byte-array length since that function now takes a length argument. Yay. Also encode any 8bit parts to avoid the possibility of sending embedded nul chars to the imap server. * providers/imap/camel-imap-store.c (try_auth): Updated to pass a command-length argument to camel_imap_command_continuation(). svn path=/trunk/; revision=14637
Diffstat (limited to 'camel/providers/imap/camel-imap-command.h')
-rw-r--r--camel/providers/imap/camel-imap-command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/providers/imap/camel-imap-command.h b/camel/providers/imap/camel-imap-command.h
index 69c28237cc..3539ac63d2 100644
--- a/camel/providers/imap/camel-imap-command.h
+++ b/camel/providers/imap/camel-imap-command.h
@@ -54,6 +54,7 @@ CamelImapResponse *camel_imap_command (CamelImapStore *store,
const char *fmt, ...);
CamelImapResponse *camel_imap_command_continuation (CamelImapStore *store,
const char *cmd,
+ size_t cmdlen,
CamelException *ex);
void camel_imap_response_free (CamelImapStore *store,