diff options
Diffstat (limited to 'camel/providers/imap4/camel-imap4-stream.c')
-rw-r--r-- | camel/providers/imap4/camel-imap4-stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |