lib: add support for date:<expr>..! to mean date:<expr>..<expr>
authorJani Nikula <jani@nikula.org>
Sat, 15 Aug 2015 11:25:47 +0000 (14:25 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 26 Sep 2015 00:55:24 +0000 (21:55 -0300)
commit23b8ed610a13802f0afa5fa70bc8faa04cf48a7f
tree914775d285aa874cad69ede04c906cb9436f980c
parent3cf7ed26c06fb3fa7145948fd9a9f2973037a5fd
lib: add support for date:<expr>..! to mean date:<expr>..<expr>

It doesn't seem likely we can support simple date:<expr> expanding to
date:<expr>..<expr> any time soon. (This can be done with a future
version of Xapian, or with a custom query query parser.) In the mean
time, provide shorthand date:<expr>..! to mean the same. This is
useful, as the expansion takes place before interpetation, and we can
use, for example, date:yesterday..! to match from beginning of
yesterday to end of yesterday.

Idea from Mark Walters <markwalters1009@gmail.com>.
doc/man7/notmuch-search-terms.rst
lib/parse-time-vrp.cc
test/T500-search-date.sh