Michael J Gruber <git@grubix.eu> writes: > ... just a guess: Could it be that > > a9f74aee ("CLI/new: drop the write lock to run the pre-new hook.", 2021-03-18) > > was not enough? > > notmuch_database_reopen() only reopens the xapian db but does not update > other members in notmuch_database_t *notmuch, such as the last doc id > and thread id. That sounds plausible. By happy coincidence I prepared a patch for this on the weekend as part of a different series. I will send the patch as a followup. It would be nice to have a regression test for this, but I'm not sure how easy it is to reproduce deterministically. d _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org