]> git.notmuchmail.org Git - notmuch/commit
lib: handle empty string in regexp field processors
authorDavid Bremner <david@tethera.net>
Fri, 24 Mar 2017 22:52:51 +0000 (19:52 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 29 Mar 2017 23:44:32 +0000 (20:44 -0300)
commitcb84f8487833c19ce13edb769fa6421547077725
tree23d688469092f86913bcd5eb75d111edd5b98153
parentbc0c051e042650106c5772d1817af1f7db32fb92
lib: handle empty string in regexp field processors

The non-field processor behaviour is is convert the corresponding
queries into a search for the unprefixed terms. This yields pretty
surprising results so I decided to generate a query that would match
the terms (i.e. none with that prefix) generated for an empty header.
lib/regexp-fields.cc
test/T650-regexp-query.sh