From: Kevin Foley <kevin@kevinjfoley.me>
To: David Bremner <david@tethera.net>,
Teemu Likonen <tlikonen@iki.fi>,
notmuch@notmuchmail.org
Subject: Re: Searching for an Exact Email Address
Date: Sun, 02 Feb 2020 10:05:41 -0500 [thread overview]
Message-ID: <m2k155112y.fsf@Kevins-MBP.home.lan> (raw)
In-Reply-To: <87a761kwtg.fsf@tethera.net>
David Bremner <david@tethera.net> writes:
> Also useful is setting NOTMUCH_DEBUG_QUERY in the environment. This will
> show the parsed Xapian query. In my case this shows both
> 'to:"example@email.com"' and to:"example@email.com" end up parsed the
> same way, so I guess the problem is elsewhere.
I should have mentioned that I tried using NOTMUCH_DEBUG_QUERY with many
different quoting variations and kept getting the same final query:
Query((Tmail AND (XTOexample@1 PHRASE 3 XTOemail@2 PHRASE 3 XTOcom@3)))
It looks like the punctuation is being stripped; I get the same final
query for `notmuch search 'to:"example email com"'`. Is this the
expected behavior?
David Bremner <david@tethera.net> writes:
> You can also do regex searches, although they are are measurably
> slower. The syntax is also discussed in notmuch-search-terms(7).
I tried this as well but per notmuch-search-terms(7) it looks like regex
isn't supported for the "to" field.
Also as a side note, I don't think the quoting is necessary as per the
"searching" documentation [0], "... e-mail addresses are also treated as
phrases.".
Kevin
[0] https://notmuchmail.org/searching/
next prev parent reply other threads:[~2020-02-02 15:06 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
2020-02-02 6:12 ` Teemu Likonen
2020-02-02 12:17 ` David Bremner
2020-02-02 15:05 ` Kevin Foley [this message]
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=m2k155112y.fsf@Kevins-MBP.home.lan \
--to=kevin@kevinjfoley.me \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
--cc=tlikonen@iki.fi \
/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).