afew: afew crashes with DatabaseCorruptError

I just upgraded afew (from 3f1e5e93119) to 1.2.0 and I’m getting this crash.

$ notmuch new
$ afew -nt
terminate called after throwing an instance of 'Xapian::DatabaseCorruptError'

This is after deleting .maildir/.notmuch so I don’t think the database is corrupt. It seems related to FolderNameFilter. Although I’m not sure if this is really it or not. My config contains:

[FolderNameFilter]
folder_blacklist = Archive INBOX
folder_transforms = Trash:deleted Junk:spam Drafts:draft Sent:sent
maildir_separator = /

Removing Archive from the blacklist seems to make it happy.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

I’ve asked notmuch developers about this issue. It’s a problem with xapian which will be probably be solved in next version of xapian(1.50). Meanwhile, here is a workaround.

notmuch compact

After this, your database should be working again.