]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lda: Removed optimization of not creating temp files for large mails when not using...
authorTimo Sirainen <tss@iki.fi>
Fri, 17 Dec 2010 13:23:07 +0000 (13:23 +0000)
committerTimo Sirainen <tss@iki.fi>
Fri, 17 Dec 2010 13:23:07 +0000 (13:23 +0000)
The backwards seeking was still needed if bouncing the mail because of
out of quota.

src/lda/main.c

index 50fbc95644b68b10fab65734055551381e39cece..66cd33a6a9de0baa88416c114e6621105e7f70de 100644 (file)
@@ -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 {