Re: Searching for an Exact Email Address

Subject: Re: Searching for an Exact Email Address

Date: Sat, 01 Feb 2020 20:38:32 -0400

To: Kevin Foley, notmuch@notmuchmail.org

Cc:

From: David Bremner


Kevin Foley <kevin@kevinjfoley.me> 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@email.com"

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).

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: