Add the reconcile command: a per-folder report that a migration was complete #81

Merged
jcoffey-dev merged 1 commits from feat/reconcile into main 2026-11-13 18:38:46 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 7862aa9bc2 Add the reconcile command: a per-folder report that a migration was complete
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 6m12s
ci / announce (pull_request) Skipped
reconcile <archive> reads a local archive and reports it folder by
folder -- a message count and a content checksum for each folder, totals
and a checksum for the whole, and an integrity check that every message
resolves to stored content and a real folder. It is read-only and
reaches no network, like inspect.

Two uses: compare the per-folder counts against the source mailbox to
prove the move brought everything across, and compare two archives'
checksums to prove they hold the very same mail (an export and a
re-import, or a backup and its source). It exits 8 when the archive is
not sound, past the 1-7 the other commands use, so a script can tell a
reconciliation failure from any other error.
2026-11-13 11:32:17 -07:00