Skip to content

Mailbox check / repair script - #246

Open
deajan wants to merge 22 commits into
grommunio:primefrom
netinvent:repair-script
Open

Mailbox check / repair script#246
deajan wants to merge 22 commits into
grommunio:primefrom
netinvent:repair-script

Conversation

@deajan

@deajan deajan commented May 20, 2026

Copy link
Copy Markdown

Using this script since more than a year without any major trouble nor data loss.

Main functions:

  • Iter over a single or all maildirs
  • Check mailbox using gromox-mbck
  • Repair mailbox if error detected
  • Check exchange.sqlite3 via sqlite3
  • Recover exchange.sqlite3 via sqlite3 and keep a backup copy of original file
  • Check midb.sqlite3 via gromox-mkmidb --integrity
  • Recreate midb.sqlite3 on error
  • Takes care to stop / restart gromox services in case an sqlite3 file needs to be repaired

Perhaps it could be useful to add it to gromox.
Feel free to change headers / licence / whatever if needed.

Respects sqlite3 checks as per #147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants