Re: search query "replytoid:<blah>"

Subject: Re: search query "replytoid:<blah>"

Date: Sat, 13 Jun 2015 23:14:54 +0200

To: Xu Wang,


From: David Bremner

Xu Wang <> writes:

> Dear all,
> Is it possible to search based on which message ID a message
> *responds* to? For example, suppose message id is MESSAGEID. I want to
> find all emails that responded to MESSAGEID. How to enter such a query
> into notmuch?

Threads aren't exactly the concept you ask for, because the include the
messages before the message-id in question as well. Nonetheless, maybe
the following helps:

% notmuch show $(notmuch search --output=threads $MESAGEID)


% notmuch search --output=messages $(notmuch search --output=threads $MESAGEID)