From 1546b3a75cf59c2b5743dd858555770df3e01a45 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 1 Oct 2010 17:06:27 +0100 Subject: [PATCH] zlib: Fixed istream-zlib when using seeking with mark=TRUE (i.e. mbox) --- src/plugins/zlib/istream-zlib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/zlib/istream-zlib.c b/src/plugins/zlib/istream-zlib.c index 79c6ac8e7b..84a8a46ebd 100644 --- a/src/plugins/zlib/istream-zlib.c +++ b/src/plugins/zlib/istream-zlib.c @@ -403,10 +403,8 @@ i_stream_zlib_seek(struct istream_private *stream, uoff_t v_offset, bool mark) } } - if (mark) { - i_stream_compress(stream); + if (mark) zstream->marked = TRUE; - } } static const struct stat * -- 2.47.3