Xu Wang <xuwang762@gmail.com> writes: > Sometimes I need to do: > > $ notmuch search --output=threads "id:MYMSGID" > thread:000000000000a125 > $ notmuch search --output=messages "thread:000000000000a125" > > In theory, this should output the message that responded to message ID > "MYMSGID". Sometimes it works. But sometimes it does not work. That > is, there exists an email where I am sure (I checked the raw email) > that there is a header > In-Reply-To: <MYMSGID> > but that email does not show when I do the two commands above. I'm not 100% sure what you mean by "does not show". Do you mean that the output from the second command is empty? or does not contain MYMSGID? > Indeed, that mail belongs to a different thread ID. How can you tell that the mail belongs to a different thread? Isn't that what your first command tells you? d