]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
zlib: Remove extra error logging for istream failures
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Feb 2021 14:57:30 +0000 (16:57 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 17 Feb 2021 10:20:18 +0000 (10:20 +0000)
The error will nowadays be logged as the istream error anyway.

src/plugins/zlib/zlib-plugin.c

index 2a3d66dc78a87c09883b5996e994926382437d24..f8ef4f85e2a92282b3c080ca019aa853f9114fff 100644 (file)
@@ -150,7 +150,7 @@ static int zlib_istream_opened(struct mail *_mail, struct istream **stream)
                }
 
                input = *stream;
-               *stream = handler->create_istream(input, TRUE);
+               *stream = handler->create_istream(input, FALSE);
                i_stream_unref(&input);
                /* dont cache the stream if _mail->uid is 0 */
                *stream = zlib_mail_cache_open(zuser, _mail, *stream, (_mail->uid > 0));
@@ -280,7 +280,7 @@ static void zlib_mailbox_open_input(struct mailbox *box)
                }
                input = i_stream_create_fd_autoclose(&fd, MAX_INBUF_SIZE);
                i_stream_set_name(input, box_path);
-               box->input = handler->create_istream(input, TRUE);
+               box->input = handler->create_istream(input, FALSE);
                i_stream_unref(&input);
                box->flags |= MAILBOX_FLAG_READONLY;
        }