Inconsistency in quoting probabilistic prefixes?

Subject: Inconsistency in quoting probabilistic prefixes?

Date: Sat, 02 Dec 2023 14:22:22 +0000

To: notmuch@notmuchmail.org

Cc:

From: artur.brzozowski


Hi!

Trying to add List matching to my notmuch tagging and I found
something that surprises me. Namely,

1) when I want to match a bunch of alternatives for <from:>
prefix, I have to quote the parenthesis to get the results:

$ notmuch search 'from:"(box@some.io or mail@example.com)"'
<results found>
$ notmuch search 'from:(box@some.io or mail@example.com)'
<no results>

2) when I want to do the same to a parenthesised set of <List:>
alternatives, I must leave it unquoted to get the results.

$ notmuch search 'List:"(freebsd-announce@freebsd.org or misc@openbsd.org)"'
<no results>
$ notmuch search 'List:(freebsd-announce@freebsd.org or misc@openbsd.org)'
<results found>

I use the standard "index.header.List=List-Id" key-value as
pointed out in notmuch-config(1).

Is this expected behaviour? If so, why?


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

Thread: