# HG changeset patch # User Timo Sirainen # Date 1500289545 -10800 # Node ID 31d2459cfcf2541b94bb25881788a6406d248cb8 # Parent 8f674d4111cfbe1aefbe56541f7521e171ae7328 imapc: Fix caching >= 32 kB mail bodies When closing the mail, only in-memory mail bodies were stored to cache. diff -r 8f674d4111cf -r 31d2459cfcf2 src/lib-storage/index/imapc/imapc-mail.c --- 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 {