Searching for an Exact Email Address

David Bremner david at
Sat Feb 1 16:38:32 PST 2020

Kevin Foley <kevin at> writes:

> Hi,
> I'm getting unexpected results when trying to search for messages
> associated with an email address.
> An example search is:
> $ notmuch search to:"example at"

See the subsection Quoting in notmuch-search-terms(7). I suspect you
need to double-quote your query, as the examples in the documentation are.

> which is returning messages that seem to have nothing to do with the
> address I'm looking for.
> My understanding is this should be treated as a phrase which means that
> exact phrase will be searched for, is this correct?  If not is there a
> way to search for an exact email address in the to field?

You can also do regex searches, although they are are measurably
slower. The syntax is also discussed in notmuch-search-terms(7).

More information about the notmuch mailing list