From: David Bremner <david@tethera.net>
To: Kevin Foley <kevin@kevinjfoley.me>, notmuch@notmuchmail.org
Subject: Re: Searching for an Exact Email Address
Date: Sat, 01 Feb 2020 20:38:32 -0400 [thread overview]
Message-ID: <87d0axlt6f.fsf@tethera.net> (raw)
In-Reply-To: <m2wo960zey.fsf@Kevins-MBP.home.lan>
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).
next prev parent reply other threads:[~2020-02-02 0:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-01 21:29 Searching for an Exact Email Address Kevin Foley
2020-02-02 0:38 ` David Bremner [this message]
2020-02-02 6:12 ` Teemu Likonen
2020-02-02 12:17 ` David Bremner
2020-02-02 15:05 ` Kevin Foley
2020-02-02 17:00 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d0axlt6f.fsf@tethera.net \
--to=david@tethera.net \
--cc=kevin@kevinjfoley.me \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).