From: Timo Sirainen Date: Fri, 17 Dec 2010 13:23:07 +0000 (+0000) Subject: lda: Removed optimization of not creating temp files for large mails when not using... X-Git-Tag: 2.0.9~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30a2755b86e3ca6f7513c5a491dd9edce904d0e6;p=thirdparty%2Fdovecot%2Fcore.git lda: Removed optimization of not creating temp files for large mails when not using Sieve. The backwards seeking was still needed if bouncing the mail because of out of quota. --- diff --git a/src/lda/main.c b/src/lda/main.c index 50fbc95644..66cd33a6a9 100644 --- a/src/lda/main.c +++ b/src/lda/main.c @@ -154,13 +154,6 @@ create_raw_stream(struct mail_deliver_context *ctx, i_free(sender); if (input->v_offset == 0) { - if (deliver_mail == NULL) { - /* no Sieve or any other plugin. this input stream - simply passes to mailbox_save(), so it doesn't need - to be seekable and we can avoid creating temp files - for large mails. */ - return input; - } input2 = input; i_stream_ref(input2); } else {