dovecot-2.0: lda: If Sieve is disabled, don't create temp files ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 3 20:02:56 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/fd44ba1fa729
changeset: 12380:fd44ba1fa729
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 03 18:00:15 2010 +0000
description:
lda: If Sieve is disabled, don't create temp files for large mails.
diffstat:
src/lda/main.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r b9487d271b72 -r fd44ba1fa729 src/lda/main.c
--- a/src/lda/main.c Wed Nov 03 17:57:20 2010 +0000
+++ b/src/lda/main.c Wed Nov 03 18:00:15 2010 +0000
@@ -154,6 +154,13 @@
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