Database corruption after clean rebuild

David Bremner david at
Sat Apr 7 08:17:39 PDT 2018

Javier Garcia <javiertury at> writes:

> Unfortunately I can't share my emails without the approval of other
> parties. The minimum subsets that trigger the error are in the range of
> 1000-5000 mails, so asking each and everyone of them is out of my reach.
> I tried to replicate the problem using just spam folders without success.
> The following is a solid workaround I've stumbled upon. Afew no longer
> complains and database corruption is gone.
> $ notmuch compact
> $ xapian-check ~/.mail/.notmuch/xapian
>    <check messages>
>    No errors found

Right, I should have thought of compaction, that's a workaround Olly
mentioned before. That strongly suggests that you are hitting the known
Xapian bug.


More information about the notmuch mailing list