On 25/04/2023, David Bremner wrote: > I would be interested if it finds your problematic ghost message (and > how long it takes). Thanks! This is much quicker than a script that I wrote using quest and xapian-delve (which took minutes!) Your code took 0.03 seconds to find 74 unreferenced ghost messages out of 9335 ghost messages, I can't imagine why so many un-referenced ghost messages were created. 47 of the 74 messages have "draft" in the ID (seemingly created by notmuch). At first your code didn't find my problematic message (which caused a draft with the ID <jwvczk7opm8.fsf-monnier+emacs@gnu.org> in `In-Reply-To` to be grouped with unrelated messages from a completely separate thread). But then I deleted the draft (including the file), ran `notmuch new` and re-ran the script and the problematic ghost message was correctly reported. So this approach would work to find un-referenced messages, but not messages which are being erroneously grouped (without first deleting the offending message), correct? -- Al _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org