From 793cbf80495b8230e0b4de6ac609e2ca88b7dd4b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 23 Nov 2009 16:58:35 +0100 Subject: 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'". --- lib/database-private.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/database-private.h') diff --git a/lib/database-private.h b/lib/database-private.h index 5f178f3e..431966fb 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -32,6 +32,7 @@ struct _notmuch_database { Xapian::Database *xapian_db; Xapian::QueryParser *query_parser; Xapian::TermGenerator *term_gen; + Xapian::ValueRangeProcessor *value_range_processor; }; #endif -- cgit v1.2.3