On Sat 16 Nov 2019 at 10:51 -0500, David Bremner wrote: > Floris Bruynooghe <flub@devork.be> writes: >> Anyway, this looks good. Would you like some changes, e.g. the rename >> to notmuch2 or so as patches? What's the next step. > > If you could look at the rename that would be great. Patches on top of > wip/cffi, or a ref for me to pull both sound fine. > >> Kind of unrelated, but in my attempt to run the full notmuch test suite >> (cd tests; make test) I somehow ended up with lots of weird tags in my >> notmuch database and made the emacs UI pretty horrible - though it seems >> I haven't lost any email. I'm sure that was my fault somehow even >> though I was just trying to follow the readme. But if anyone has any >> hints how to recover from this that could save me some time :) > > Hmm. I've never encountered that, but maybe it has to do with killing > the environment? The test harness uses the environment variable > NOTMUCH_CONFIG to point to a test database, and if that was deleted, it > would look in ~/.notmuch-config. Yeah, I probably managed to make it use ~/.notmuch-config somehow. > Still that would really only be tags from your pytest tests, and you'd > probably recognize those? The were a bunch of weird characters that looked like unicode test-cases, the pytest tests don't try to test notmuch only the bindings so doesn't really make up weird strings IIRC. I recovered with something like "notmuch dump | cleanup_tags.py | notmuch restore", oh well. I still have a bunch of non-existing messages with weird unicode message IDs in them, but no associated filename just an empty string. AFAIK notmuch_database_remove_message() needs a filename though, I've tried removing the empty file which does not fail but doesn't clear those database entries. The messages are not ghosts either. Any idea how I might be able to clear those bad messages from the database? Cheers, Floris _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch