From 25f5d224cc174f5c8eea3651034841e051668caf Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 2 Nov 2004 19:19:27 +0000 Subject: Update stream->inptr after fetching the literal chunk. 2004-11-02 Jeffrey Stedfast * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_literal): Update stream->inptr after fetching the literal chunk. svn path=/trunk/; revision=27800 --- camel/ChangeLog | 4 ++++ camel/providers/imap4/camel-imap4-stream.c | 2 ++ 2 files changed, 6 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 01c00dc096..6422ecd063 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,9 @@ 2004-11-02 Jeffrey Stedfast + * providers/imap4/camel-imap4-stream.c + (camel_imap4_stream_literal): Update stream->inptr after fetching + the literal chunk. + * providers/imap4/camel-imap4-summary.c (envelope_decode_address): Do proper cleanup in case of error and also handle literals. diff --git a/camel/providers/imap4/camel-imap4-stream.c b/camel/providers/imap4/camel-imap4-stream.c index 629a86f7d8..42100b04de 100644 --- a/camel/providers/imap4/camel-imap4-stream.c +++ b/camel/providers/imap4/camel-imap4-stream.c @@ -710,6 +710,8 @@ camel_imap4_stream_literal (CamelIMAP4Stream *stream, unsigned char **literal, s *len = nread = inend - inptr; stream->literal -= nread; + stream->inptr += nread; + if (stream->literal == 0) { stream->mode = CAMEL_IMAP4_STREAM_MODE_TOKEN; stream->eol = TRUE; -- cgit