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

2017-09-23 Thread Attic Hermit
> I'm not sure it's worth the extra complexity.
Maybe you're right. I'll take the option, combinding `from' and `to'
headers to get the jobs done.

Thanks!

-- 
Attic Hermit
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


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

2017-09-22 Thread David Bremner
David Bremner  writes:

> Attic Hermit  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

that should be

+john +friend -- tag:new AND query:fromtojohn
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


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

2017-09-22 Thread David Bremner
Attic Hermit  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


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

2017-09-21 Thread Attic Hermit

> +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.

-- 
Attic Hermit
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


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

2017-09-21 Thread David Bremner
Attic Hermit  writes:

> Batch file of my initial tagging script includes queries like below:
>
> +john +friend -- tag:new AND from:j...@example.tld
> +john +friend -- tag:new AND to:j...@example.tld
>
> But I want to compress the above in one line like:
>
> +john +friend -- tag:new AND from_or_to:j...@example.tld
>

How about

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

?

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


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

2017-09-21 Thread Attic Hermit
Batch file of my initial tagging script includes queries like below:

+john +friend -- tag:new AND from:j...@example.tld
+john +friend -- tag:new AND to:j...@example.tld

But I want to compress the above in one line like:

+john +friend -- tag:new AND from_or_to:j...@example.tld

I know that I can achieve it approximately by querying without prefix,
but it'll also include the mails that include the string
"j...@example.tld".

I look through the manual, man:notmuch-search-terms, but I couldn't find
the prefix I want.

-- 
Attic Hermit
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch