"artur.brzozowski" <[email protected]> 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:"([email protected] or [email protected])"'
> <results found>
> $ notmuch search 'from:([email protected] or [email protected])'
> <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:"([email protected] or [email protected])"'
> <no results>
> $ notmuch search 'List:([email protected] or [email protected])'
> <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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to