Andrey Albershteyn <aalbersh@redhat.com> writes: > > I ended up removing database, and running 'notmuch new' to re-index > everything. This is problematic as now all my emails are marked as > unread, but I figured this out by marking all older mails as read. For future reference, you can use the commands "notmuch dump" and "notmuch restore" to save the database state to a text file and restore it after rebuilding the database. > Didn't found the reason for database corruption. Is (or was) the disk full? I have seen at least btrfs and xapian interact badly if the database is being written when the disk gets full. _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org