Mercurial > dovecot > core-2.2
changeset 22337:31d2459cfcf2
imapc: Fix caching >= 32 kB mail bodies
When closing the mail, only in-memory mail bodies were stored to cache.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 17 Jul 2017 14:05:45 +0300 |
parents | 8f674d4111cf |
children | 7a30ce5f35b6 |
files | src/lib-storage/index/imapc/imapc-mail.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-mail.c Fri Jul 14 02:11:56 2017 +0300 +++ b/src/lib-storage/index/imapc/imapc-mail.c Mon Jul 17 14:05:45 2017 +0300 @@ -441,7 +441,7 @@ if (mail->body_fetched) { imapc_mail_cache_free(cache); cache->uid = _mail->uid; - if (cache->fd != -1) { + if (mail->fd != -1) { cache->fd = mail->fd; mail->fd = -1; } else {