dovecot-2.2: lib-storage: Removed caching body snippet while mes...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 19 19:59:47 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/861c9985e7c2
changeset: 18170:861c9985e7c2
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 19 21:58:19 2015 +0200
description:
lib-storage: Removed caching body snippet while message is being saved.
This broke saving mails with dbox, because it attempts to open the mails
too early. Also the generation was a bit costly operation to do if it wasn't
actually wanted to be cached.

So in future we'd first want to check if body snippet is actually wanted. If
it is, then generate the potential snippets while the message is being
parsed (always generate the snippet for the best found MIME part, replacing
existing snippets when needed). This requires the message_snippet_generate()
API to support sending input as partial message_blocks.

diffstat:

 src/lib-storage/index/index-mail-headers.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 50514ef4f138 -r 861c9985e7c2 src/lib-storage/index/index-mail-headers.c
--- a/src/lib-storage/index/index-mail-headers.c	Mon Jan 19 21:53:00 2015 +0200
+++ b/src/lib-storage/index/index-mail-headers.c	Mon Jan 19 21:58:19 2015 +0200
@@ -383,7 +383,6 @@
 	mail->data.save_sent_date = TRUE;
 	mail->data.save_bodystructure_header = TRUE;
 	mail->data.save_bodystructure_body = TRUE;
-	mail->data.save_body_snippet = TRUE;
 
 	mail->data.tee_stream = tee_i_stream_create(input);
 	input = tee_i_stream_create_child(mail->data.tee_stream);


More information about the dovecot-cvs mailing list