dovecot-2.0: lda: Removed optimization of not creating temp file...

dovecot at dovecot.org dovecot at dovecot.org
Fri Dec 17 15:23:11 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/89936539e3b8
changeset: 12528:89936539e3b8
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Dec 17 13:23:07 2010 +0000
description:
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.

diffstat:

 src/lda/main.c |  7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diffs (17 lines):

diff -r b7dd7a966a3a -r 89936539e3b8 src/lda/main.c
--- a/src/lda/main.c	Fri Dec 17 13:16:01 2010 +0000
+++ b/src/lda/main.c	Fri Dec 17 13:23:07 2010 +0000
@@ -154,13 +154,6 @@
 	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 {


More information about the dovecot-cvs mailing list