Mercurial > dovecot > core-2.2
changeset 12380:fd44ba1fa729
lda: If Sieve is disabled, don't create temp files for large mails.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 03 Nov 2010 18:00:15 +0000 |
parents | b9487d271b72 |
children | 29c71b6e354e |
files | src/lda/main.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 {