]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Finish fixing removal of forced cache decisions from existing cache files
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 24 Jan 2018 15:58:57 +0000 (17:58 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 24 Jan 2018 23:25:47 +0000 (01:25 +0200)
6ef2504d020461b0f480766c41596595a4300023 didn't fix it for already known
fields.

src/lib-index/mail-cache-fields.c

index 64c3dd761cae8534d649913d54512819078ec691..eacc19a03776c08def1767e514c3bd412b65be89 100644 (file)
@@ -402,7 +402,7 @@ int mail_cache_header_fields_read(struct mail_cache *cache)
                            (cache->fields[fidx].field.decision &
                             MAIL_CACHE_DECISION_FORCED) == 0) {
                                cache->fields[fidx].field.decision =
-                                       decisions[i];
+                                       decisions[i] & ~MAIL_CACHE_DECISION_FORCED;
                        }
                        if (field_type_verify(cache, fidx,
                                              types[i], sizes[i]) < 0)