]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Remove backward compatibility code for Dovecot v2.1 and older
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 30 Mar 2020 14:49:35 +0000 (17:49 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 15 Apr 2020 09:41:42 +0000 (12:41 +0300)
We can still read old cache files, but Dovecot v2.1 can't anymore read these
newer cache files.

src/lib-index/mail-cache.c

index ab5c310b3430601c64701fa9beb5e31e620c958b..f69b0ae958ff92a3f97cd7f745b53eb0d8d62660 100644 (file)
@@ -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;
 }