]> git.notmuchmail.org Git - notmuch/commit
lib: do not phrase parse prefixed bracketed subexpressions
authorDavid Bremner <david@tethera.net>
Fri, 25 Feb 2022 02:41:03 +0000 (22:41 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 19 Mar 2022 10:27:29 +0000 (07:27 -0300)
commit8ed6a172b35708428f84f30af44fa81c12852e43
tree64c1a4a8b2beb13abacb74aa77ecaefb555ec976
parentc9ed87f39f54b83ecafc719e848909da6074075f
lib: do not phrase parse prefixed bracketed subexpressions

Since Xapian does not preserve quotes when passing the subquery to a
field processor, we have to make a guess as to what the user
intended. Here the added assumption is that a string surrounded by
parens is not intended to be a phrase.
doc/man7/notmuch-search-terms.rst
lib/regexp-fields.cc
test/T650-regexp-query.sh