Attic Hermit <fjd...@cock.li> writes:

>> +john +friend -- tag:new AND (to:j...@example.tld OR
>> from:j...@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:j...@example.tld OR from:j...@example.tld"

then you can use

+john +friend -- tag:new AND (to:j...@example.tld OR from:j...@example.tld) 
query:fromtojohn

Hypothetically it would be possible to extend the query: syntax to
support parameters, but I'm not sure it's worth the extra complexity.
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to