unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Query by how many messages are in thread?
@ 2023-08-12 17:46 Lars Kotthoff
  2023-08-12 20:00 ` Tim Culverhouse
  2023-08-12 23:48 ` David Bremner
  0 siblings, 2 replies; 3+ messages in thread
From: Lars Kotthoff @ 2023-08-12 17:46 UTC (permalink / raw)
  To: notmuch

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,

Lars

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Query by how many messages are in thread?
  2023-08-12 17:46 Query by how many messages are in thread? Lars Kotthoff
@ 2023-08-12 20:00 ` Tim Culverhouse
  2023-08-12 23:48 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Culverhouse @ 2023-08-12 20:00 UTC (permalink / raw)
  To: Lars Kotthoff, notmuch

On Sat Aug 12, 2023 at 1:28 PM CDT, Lars Kotthoff wrote:
> 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!

Hi Lars -

Try this:

`notmuch search "<your-query>" | grep "\[1/1]"`

-- 
Tim

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Query by how many messages are in thread?
  2023-08-12 17:46 Query by how many messages are in thread? Lars Kotthoff
  2023-08-12 20:00 ` Tim Culverhouse
@ 2023-08-12 23:48 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2023-08-12 23:48 UTC (permalink / raw)
  To: Lars Kotthoff, notmuch

Lars Kotthoff <lists@larsko.org> 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

      https://nmbug.notmuchmail.org/nmweb/show/20230213122631.2088558-1-david@tethera.net

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-12 23:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12 17:46 Query by how many messages are in thread? Lars Kotthoff
2023-08-12 20:00 ` Tim Culverhouse
2023-08-12 23:48 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).