]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage, imapc: Fix caching headers as empty values when handling partial header...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 21 Oct 2025 20:45:45 +0000 (23:45 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 21 Oct 2025 20:50:53 +0000 (23:50 +0300)
commitbb1b51d86af68af0be2460cac6f94f3a245b2952
treee395784c3107340043e2e94f484584a2119878a7
parenta73ea61cafac6864d6e52662205069371fe7b392
lib-storage, imapc: Fix caching headers as empty values when handling partial header fetches

When imapc does FETCH BODY.PEEK[HEADER.FIELDS (a b)], the result is valid
only for headers "a" and "b". The header parsing was expecting that it was
seeing the full header, so if caching decisions had remembered that also
header "c" is wanted to be cached, it was done with an empty value.
src/lib-storage/index/imapc/imapc-mail-fetch.c
src/lib-storage/index/index-mail-headers.c
src/lib-storage/index/index-mail.h
src/lib-storage/index/index-search.c