]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
sdbox: If mail file is found to be corrupted, fix the file immediately
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 20 Jun 2023 19:59:19 +0000 (22:59 +0300)
committermarkus.valentin <markus.valentin@open-xchange.com>
Wed, 21 Jun 2023 12:51:59 +0000 (12:51 +0000)
Don't mark the whole mailbox corrupted. The file fixing on sdbox rebuild
will be removed by a following commit.

src/lib-storage/index/dbox-single/sdbox-storage.c

index ffcb121fe9477eaccc7e8d94c895384e9bb2eb03..8814674663936db9a4b0c553e334d3baff2ed184 100644 (file)
@@ -306,9 +306,7 @@ void sdbox_set_mailbox_corrupted(struct mailbox *box)
 
 static void sdbox_set_file_corrupted(struct dbox_file *_file)
 {
-       struct sdbox_file *file = (struct sdbox_file *)_file;
-
-       sdbox_set_mailbox_corrupted(&file->mbox->box);
+       (void)dbox_file_fix(_file, 0);
 }
 
 static int sdbox_mailbox_alloc_index(struct sdbox_mailbox *mbox)