[PATCH] lib: add support for thread:<message-id> queries
David Bremner
david at tethera.net
Fri Oct 20 03:35:02 PDT 2017
Mark Walters <markwalters1009 at gmail.com> writes:
> Hi
>
> On Mon, 16 Oct 2017, Jani Nikula <jani at nikula.org> wrote:
>> Add support for querying threads using message-ids in addition to
>> thread-ids. The main benefit is that thread queries via message-ids
>> are portable across databases, re-indexing, and thread joining, while
>> thread ids can be somewhat transient. A thread:<message-id> query can
>> be shared between notmuch users, while a thread:<thread-id> query may
>> cease to work after the regular delivery of a message that joins
>> threads.
>
> I like the idea.
>
> Just one thought -- is any form of recursion allowed in this sort of
> operator so could we have thread:'some query' which would expand to all
> threads matching the query? I am guessing this may not be possible now
> but would it be worth requiring the thread form to be
> thread:id:<message id> rather than thread:<message id>?
In id:20170820213240.20526-1-david at tethera.net I used thread:{} to
introduce an arbitrary query. That syntax seems ok to me, and doesn't
conflict with Jani's patch. I think Jani mentioned at the time that
thread:{id:foo} was a too much typing.
d
More information about the notmuch
mailing list