]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: move snippet generation to mail-save-finish
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Sun, 18 Feb 2018 23:06:48 +0000 (18:06 -0500)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 20 Feb 2018 08:20:34 +0000 (10:20 +0200)
commit994ecfe787494bfc861ffc54be4302de75942737
tree375e03d226d517cc46d8fcaf3543f0f855e0ccd5
parent424753d9ddb5214bd2f74201f1bcc2b858bab626
lib-storage: move snippet generation to mail-save-finish

This is necessary because some storage backends (most notably sdbox) do
not allow getting the mail stream before the mail is fully written out.
(See written_to_disk in sdbox-file.h.)

If we could avoid getting the stream to generate a snippet we could
leave this where it is.
src/lib-storage/index/index-mail.c