Quoting the argument does not change anyting -- which makes sense, since searching for the id does work well when using "notmuch show --format=raw". So it's not a quoting issue. BTW, the error also shows up if I just omit the option "format=raw" in notmuch show. This is the ID which I am using for testing: E5-a1wt6bgr-elaine/2/42589-dc960dd3@nlsender05.ui-portal.com Jörg Tomi Ollila writes: > On Fri, Aug 11 2017, Jörg Volbers wrote: > >> Hello, >> >> I have problems searching for a message by its id. >> >> If I call notmuch-show, everything works fine; actually this is >> used by the emacs frontend: >> >> 'notmuch show --format=raw id:<.....>' >> >> If I try to search for this mail with notmuch-search, I get no >> result: >> >> notmuch search -- id:<....> >> >> Any ideas? > > put search terms inside single quotes. i.e. notmuch search -- > 'id:<....>' > > Tomi > >> >> Best, Jörg >> >> -- http://www.joergvolbers.de >> https://fu-berlin.academia.edu/jvolbers -- http://www.joergvolbers.de https://fu-berlin.academia.edu/jvolbers