Re: Query by how many messages are in thread?

Subject: Re: Query by how many messages are in thread?

Date: Sat, 12 Aug 2023 20:48:14 -0300

To: Lars Kotthoff,


From: David Bremner

Lars Kotthoff <> writes:

> Hi all,
>  I was wondering whether there's a way to query threads that have a certain number of messages, in addition to matching the rest of the query. I'm trying to find threads where I have sent an email (easy enough by just matching "from") but where I haven't gotten a reply yet (i.e. there's only one message in the thread), so that I know to follow up. If you can think of another way of doing this, that would be great as well!
> Thanks,

We had some discussion about a proposed method to do this

Unfortunately my initial attempt didn't distinguish between real
messages in the database and so called "ghost messages" generated by
(potentially spurious references).  This generates some false positive
for threads which seem large, but are not.
notmuch mailing list --
To unsubscribe send an email to