Re: can a notmuch query filter the output based on the size of a thread?

Subject: Re: can a notmuch query filter the output based on the size of a thread?

Date: Sat, 16 Nov 2019 10:38:44 -0500

To: Daniel Kahn Gillmor, Jameson Graef Rollins, Notmuch Mail

Cc:

From: David Bremner


Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:

> nope, i think they want:
>
>    - show me all threads where:
>       - at least one message has the tag 'list/questions', and
>       - at least two distinct messages are present
>
> does that make more sense?
>

I don't see an easy way to do this without adding machinery like for the
"thread:{}" queries. This comes with a definite performance hit as it
reads the whole thread during the query construction. Currently notmuch
does not store a mapping from threads to messages in the database, but
only from messages to threads.

Alternatively someone (TM) could add thread objects to the notmuch
database. This would allow much faster thread operations, but would
require some fairly delicate maintenance of the thread
objects. Basically they would need to updated every time a message is
added or removed from the database, and potentially garbage collected.

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: