Using Xapian synonyms with notmuch

David Bremner david at tethera.net
Thu May 30 03:19:22 PDT 2019


Xu Wang <xuwang762 at gmail.com> writes:

> I have some contacts who go by several names (mostly people who use
> their native name in addition to sometimes using a name easier to
> pronounce for others; but also some secret agents). I often want to do
> something like "from:James" and where notmuch gives me back results
> with emails from "James", "Jimmy" and from "Jaime".
>

I think the only solution that is possible with current notmuch is to
use a stored query

$ notmuch config set query.james "from:James or from:Jimmy or from Jaime"
$ notmuch search query:james and date:today



More information about the notmuch mailing list