From: Timo Sirainen Date: Sun, 5 Apr 2020 17:42:12 +0000 (+0300) Subject: lib-index: Make sure cache header is written after changing cache decisions X-Git-Tag: 2.3.11.2~374 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dd4bc3348a48ed7cb45c3988c63ffdd5da78fbb;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Make sure cache header is written after changing cache decisions Remove the extra check that caused it to wrongly not be updated in some situations. --- diff --git a/src/lib-index/mail-cache-decisions.c b/src/lib-index/mail-cache-decisions.c index a39ad8ef48..2bf742d83c 100644 --- a/src/lib-index/mail-cache-decisions.c +++ b/src/lib-index/mail-cache-decisions.c @@ -118,9 +118,7 @@ void mail_cache_decision_state_update(struct mail_cache_view *view, drop back to TEMP within few months. */ cache->fields[field].field.decision = MAIL_CACHE_DECISION_YES; cache->fields[field].decision_dirty = TRUE; - - if (cache->field_file_map[field] != (uint32_t)-1) - cache->field_header_write_pending = TRUE; + cache->field_header_write_pending = TRUE; } else { cache->fields[field].uid_highwater = uid; }