"artur.brzozowski" <artur.brzozowski@protonmail.com> writes: > 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? Unfortunately there are likely to be inconsistencies between those fields supporting regex queries (like from) and "true" probabilistic prefixes. I think that these problems are tricky to fix because of the way notmuch extends the Xapian query parser, namely by reparsing a "boolean" term. The sexp query parser should not have these issues. _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org