]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: Attachment flag detection shouldn't cause mail body to be opened
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 10 May 2019 16:16:07 +0000 (19:16 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 13 May 2019 10:49:07 +0000 (10:49 +0000)
commit057028e3f5567e21c964005ffccda1055fa86508
tree0de73f00589391c429bf9c511d11e66da860a567
parent41e250bc898abc3b03887b603c40feb1626c7fb5
lib-storage: Attachment flag detection shouldn't cause mail body to be opened

Fetching cached mail headers with
mail_attachment_detection_options=add-flags-on-save caued IMAP BODYSTRUCTURE
to be fetched as well. If it wasn't already cached, this caused opening the
mail body to generate it. Also the result wasn't added to cache, so the
inefficient behavior continued.
src/lib-storage/index/index-mail.c