]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-index: Fix cache lookups from uncommitted transactions with in-memory indexes
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 13 Jun 2017 19:14:11 +0000 (22:14 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Fri, 16 Jun 2017 06:18:13 +0000 (09:18 +0300)
commit5c92541d8f8d9308faeacbd60be34253031d632c
tree60a4d09209703a39edb74a68256787425a4670c2
parentd8c688a9889135ffa5ac9fe9043a227447a57727
lib-index: Fix cache lookups from uncommitted transactions with in-memory indexes

This especially fixes mail_get_header_stream() with imapc and
imapc_features=fetch-headers, because it works by first fetching the
specific headers and putting them to the cache transaction, then later on
relying on index_mail_get_header_stream() to get them from the transaction.
Before this fix they wouldn't be found, which triggered another unnecessary
FETCH BODY.PEEK[HEADER].
src/lib-index/mail-cache-transaction.c