The intention was to delete any temporary mail files that have been left
behind by crashed processes, but mail files are written to storage/
directory.
return 0;
}
-static void dbox_mailbox_close_cleanup(struct mailbox *box)
+void dbox_mailbox_close_cleanup(struct mailbox *box)
{
if (box->view == NULL)
return;
void dbox_mailbox_close(struct mailbox *box)
{
- dbox_mailbox_close_cleanup(box);
index_storage_mailbox_close(box);
}
int dbox_mailbox_check_existence(struct mailbox *box);
int dbox_mailbox_open(struct mailbox *box);
void dbox_mailbox_close(struct mailbox *box);
+void dbox_mailbox_close_cleanup(struct mailbox *box);
int dbox_mailbox_create(struct mailbox *box,
const struct mailbox_update *update, bool directory);
int dbox_mailbox_create_indexes(struct mailbox *box,
if (mbox->corrupted_rebuild_count != 0)
(void)sdbox_sync(mbox, 0);
+ dbox_mailbox_close_cleanup(box);
dbox_mailbox_close(box);
}