Add rudimentary date-based search.
authorCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 15:58:35 +0000 (16:58 +0100)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 16:17:08 +0000 (17:17 +0100)
commit793cbf80495b8230e0b4de6ac609e2ca88b7dd4b
tree0847466d390d9ebf5ec63cc5a0c638a096de40d9
parenta378dff8a1b9136c3a2472dc6a88911ca3fa41b4
Add rudimentary date-based search.

The rudimentary aspect here is that the date ranges are specified with
UNIX timestamp values (number of seconds since 1970-01-01 UTC). One
thing that can help here is using the date program to determins
timestamps, such as:

$(date +%s -d 2009-10-01)..$(date +%s)

Long-term, we'll probably need to do our own query parsing to be able
to support directly-specified dates and also relative expressions like
"since:'2 months ago'".
TODO
lib/database-private.h
lib/database.cc
notmuch.1
notmuch.c