Re: [PATCH] lib: add support for thread:<message-id> queries

Subject: Re: [PATCH] lib: add support for thread:<message-id> queries

Date: Fri, 20 Oct 2017 07:35:02 -0300

To: Mark Walters, Jani Nikula, notmuch@notmuchmail.org

Cc:

From: David Bremner


Mark Walters <markwalters1009@gmail.com> writes:

> Hi
>
> On Mon, 16 Oct 2017, Jani Nikula <jani@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@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
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: