Is there a prefix that performs from: and to: simultaneously?

David Bremner david at tethera.net
Fri Sep 22 05:07:42 PDT 2017


David Bremner <david at tethera.net> writes:

> Attic Hermit <fjdksl at cock.li> writes:
>
>>> +john +friend -- tag:new AND (to:john at example.tld OR
>>> from:john at example.tld)
>>
>> First did I tried that form, but I felt that wasn't up to snuff because
>> I still have to write the same address two times.
>
> Currently I think that's the best you can do. You may be interested in
> defining a predefined query
>
> notmuch config query.fromtojohn "to:john at example.tld OR from:john at example.tld"
>
> then you can use
>
> +john +friend -- tag:new AND (to:john at example.tld OR from:john at example.tld) query:fromtojohn

that should be

+john +friend -- tag:new AND query:fromtojohn


More information about the notmuch mailing list