changeset 22699:324bc758ebf7

lib-storage: Log an error when mailbox list index is rebuilt due to header fsck flag
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 29 Nov 2017 15:20:29 +0200
parents bdb8b4e03f1b
children 59c0869770eb
files src/lib-storage/list/mailbox-list-index.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index.c	Wed Nov 29 15:14:02 2017 +0200
+++ b/src/lib-storage/list/mailbox-list-index.c	Wed Nov 29 15:20:29 2017 +0200
@@ -444,8 +444,11 @@
 		/* 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;