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, notmuch@notmuchmail.org

Cc:

From: Kevin Foley


David Bremner <david@tethera.net> writes:

> If you have want you can define a query
>
> $ notmuch config set query.John from:jdoe@example.com
>
> 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]: https://xapian.org/docs/synonyms.html

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
`user.other_email`.

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 "jdoe@example.com"?  I'm guessing based on the Xapian docs
that would end up being 3 different calls.

Kevin
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: