From: Patrick Totzke <patricktotzke@googlemail.com>
To: Notmuch Mail <notmuch@notmuchmail.org>
Subject: [feature request] thread-based queries
Date: Wed, 18 Jan 2012 14:48:23 -0000
Date: Wed, 18 Jan 2012 14:48:23 +0000 [thread overview]
Message-ID: <20120118144823.23822.46971@megatron> (raw)
Hi everyone,
A recent discussion on alot's issue tracker[0] made it clear that it might be useful to have a thread-based
matching for queries as an alternative to the current message based approach:
Consider a thread with two messages, one has a single tag 'flagged', the other a single tag 'unread'.
Now the thread doesn't match "tag:flagged AND tag:unread" as it doesn't contain any matching messages.
However, listing the tags of this thread accumulates to ['flagged', 'unread'].
As far as I know, there is no way one can tell notmuch to evaluate the query with threads as atomic entities
instead of messages so that the thread in the example above matches. I would like to see such a switch in
libnotmuch and the python bindings, maybe as parameter to `notmuch_query_create` or as something similar to
`notmuch_query_set_sort`.
I am aware that I can simulate the intended behaviour by rewriting the query myself, but I think
such a feature makes sense not only for alot users and should be implemented at a lower level.
Moreover, I wouldn't be surprised if doing this at a library level is less painful than higher up
as Xapian has to parse query formulae anyway and hence should offer some convenience methods for dealing with them.
Please correct me if I'm wrong here or have just overlooked previous discussions/solutions for this issue.
Best,
/p
[o]: https://github.com/pazz/alot/issues/270
reply other threads:[~2012-01-18 14:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20120118144823.23822.46971@megatron \
--to=patricktotzke@googlemail.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).