Re: Handling Email Addresses Without Name

Subject: Re: Handling Email Addresses Without Name

Date: Mon, 17 Jan 2022 10:20:10 -0500

To: David Bremner,


From: Kevin Foley

David Bremner <> writes:

> If you have want you can define a query
> $ notmuch config set query.John
> Then you can use
> $ notmuch search query:John

This isn't ideal as I'd prefer not to have to remember to use a query
instead of "from".  However, I didn't know about the predefined query
feature so that's cool to see.

> Xapian has a synonym facility [1], but it is not currently used by
> notmuch. This would work well for this particular application, but
> (unlike query) it ORs the original term into the expansion (as makes
> sense for synonyms). That would make it less useful for cases like
> "from:me", where the query would match a literal "me" in the from
> field. Thanks to Apple's cloud thingy, that actually matches quite a
> lot.
> [1]:

This could be interesting.  I actually do something write now in my post
new hook script where I get all versions of my email address (I at one
time used an address based on each website) and update the value of

If there was the ability to assign synonyms I might be able to do
something similar.  It would depend what the interface was like I
suppose.  For example, what if I wanted to connect "John", "John Doe",
and "Doe" to ""?  I'm guessing based on the Xapian docs
that would end up being 3 different calls.

notmuch mailing list --
To unsubscribe send an email to