unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* match on all messages in a thread - rather than messages invdividually
@ 2016-08-22  9:36 Gaute Hope
  2016-08-22 12:48 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Gaute Hope @ 2016-08-22  9:36 UTC (permalink / raw)
  To: notmuch

Hi,

I often fail to find threads because there are no messages that match
all the criteria, but the thread combined match the full criterias. 

Often I remember some bits about the whole thread, but they may not be
in any one message - these are hard to find.

Is it possible to search in a way that (through the API) such that the
thread is matching, rather than the individual messages?

How does muted thread work with regard to this? If I have one unmuted
message in a thread that message matches the query. If a new message is
added to a muted thread, is the muted tag applied to it?

Regards, Gaute


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

* Re: match on all messages in a thread - rather than messages invdividually
  2016-08-22  9:36 match on all messages in a thread - rather than messages invdividually Gaute Hope
@ 2016-08-22 12:48 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2016-08-22 12:48 UTC (permalink / raw)
  To: Gaute Hope, notmuch

Gaute Hope <eg@gaute.vetsj.com> writes:

> Is it possible to search in a way that (through the API) such that the
> thread is matching, rather than the individual messages?

This is not currently possible.  Since threads are not stored as
documents in the database, a straightforward implementation would be
linear in the number of threads.  It might be possible to filter the set
of threads to be examined by turning the "AND" query into an "OR" query,
and making a second pass at the thread-id's of messages matching the
expanded query. I'm not sure if/when I'll find time to look at it, but
if someone wants a project, I think most of the xapian pieces are in

    id:1467034387-16885-1-git-send-email-david@tethera.net

> How does muted thread work with regard to this? If I have one unmuted
> message in a thread that message matches the query. If a new message is
> added to a muted thread, is the muted tag applied to it?

"muted" is not something built in to notmuch, so it depends a bit which
hack you're refering to. If you mean the CLI hack described at

     https://notmuchmail.org/excluding/

then yes, the muted tag is propagated. 

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22  9:36 match on all messages in a thread - rather than messages invdividually Gaute Hope
2016-08-22 12: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).