]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
imapc: Update mail size also when istream_opened() hook is called
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 15 Mar 2018 10:20:14 +0000 (12:20 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 15 Mar 2018 10:20:14 +0000 (12:20 +0200)
commit6f466048f1c1b601d5f06f76a3685ed863c7dc35
tree42e7d7f0a6f4721a4e4913d782fe1013160e214f
parent98794428c6805fb82d4d650f46a635226862c4f0
imapc: Update mail size also when istream_opened() hook is called

When fetching a message body the cached message size was set. However,
if istream_opened() hook was used this wasn't done. If a client had
fetched both (RFC822.SIZE BODY.PEEK[]) and the server sent a wrong
RFC822.SIZE, that size was used for the message body size, which resulted
in "Cached message size larger than expected" errors.
src/lib-storage/index/imapc/imapc-mail-fetch.c