From: David Bremner <david@tethera.net>
To: Gaute Hope <eg@gaute.vetsj.com>, notmuch@notmuchmail.org
Subject: Re: match on all messages in a thread - rather than messages invdividually
Date: Mon, 22 Aug 2016 09:48:38 -0300 [thread overview]
Message-ID: <87a8g5q89l.fsf@zancas.localnet> (raw)
In-Reply-To: <1471858269.x2m28lgosh.astroid@strange>
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.
prev parent reply other threads:[~2016-08-22 12:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8g5q89l.fsf@zancas.localnet \
--to=david@tethera.net \
--cc=eg@gaute.vetsj.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).