From: Timo Sirainen Date: Mon, 30 Mar 2020 14:49:35 +0000 (+0300) Subject: lib-index: Remove backward compatibility code for Dovecot v2.1 and older X-Git-Tag: 2.3.11.2~389 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90641af5ca6f838f6f14e1a7e2734fa2c205d1f9;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Remove backward compatibility code for Dovecot v2.1 and older We can still read old cache files, but Dovecot v2.1 can't anymore read these newer cache files. --- diff --git a/src/lib-index/mail-cache.c b/src/lib-index/mail-cache.c index ab5c310b34..f69b0ae958 100644 --- a/src/lib-index/mail-cache.c +++ b/src/lib-index/mail-cache.c @@ -230,8 +230,6 @@ static void mail_cache_update_need_compress(struct mail_cache *cache) happen if old Dovecot was used to access mailbox after it had been updated. */ records_count = I_MAX(msg_count, 1); - cache->hdr_copy.record_count = msg_count; - cache->hdr_modified = TRUE; } else { records_count = hdr->record_count; } @@ -930,11 +928,6 @@ int mail_cache_append(struct mail_cache *cache, const void *data, size_t size, } if (mail_cache_write(cache, data, size, *offset) < 0) return -1; - - /* FIXME: this is updated only so that older Dovecot versions (<=v2.1) - can read this file. we can remove this later. */ - cache->hdr_modified = TRUE; - cache->hdr_copy.backwards_compat_used_file_size = *offset + size; return 0; }