]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Log an error when mailbox list index is rebuilt due to header fsck flag
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 29 Nov 2017 13:20:29 +0000 (15:20 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 5 Dec 2017 13:45:26 +0000 (15:45 +0200)
src/lib-storage/list/mailbox-list-index.c

index 510d660738b8fafb0200e8c7a1cd4b59ff8c50aa..4d9314ea61673fc029adeb61f85131d2b52a5b2c 100644 (file)
@@ -444,8 +444,11 @@ int mailbox_list_index_parse(struct mailbox_list *list,
                /* nothing changed */
                return 0;
        }
-       if ((hdr->flags & MAIL_INDEX_HDR_FLAG_FSCKD) != 0)
+       if ((hdr->flags & MAIL_INDEX_HDR_FLAG_FSCKD) != 0) {
+               mailbox_list_set_critical(list,
+                       "Mailbox list index was marked as fsck'd %s", ilist->path);
                ilist->call_corruption_callback = TRUE;
+       }
 
        mailbox_list_index_reset(ilist);
        ilist->sync_log_file_seq = hdr->log_file_seq;