diff options
author | Carl Worth <cworth@cworth.org> | 2009-11-23 16:58:35 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-11-23 17:17:08 +0100 |
commit | 793cbf80495b8230e0b4de6ac609e2ca88b7dd4b (patch) | |
tree | 0847466d390d9ebf5ec63cc5a0c638a096de40d9 /notmuch.1 | |
parent | a378dff8a1b9136c3a2472dc6a88911ca3fa41b4 (diff) |
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'".
Diffstat (limited to 'notmuch.1')
-rw-r--r-- | notmuch.1 | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -408,6 +408,21 @@ Parentheses can also be used to control the combination of the Boolean operators, but will have to be protected from interpretation by the shell, (such as by putting quotation marks around any parenthesized expression). + +Finally, results can be restricted to only messages within a +particular time range, (based on the Date: header) with a syntax of: + + <intial-timestamp>..<final-timestamp> + +Each timestamp is a number representing the number of seconds since +1970-01-01 00:00:00 UTC. This is not the most convenient means of +expressing date ranges, but until notmuch is fixed to accept a more +convenient form, one can use the date program to construct +timestamps. For example, with the bash shell the folowing syntax would +specify a date range to return messages from 2009-10-01 until the +current time: + + $(date +%s -d 2009-10-01)..$(date +%s) .SH SEE ALSO The emacs-based interface to notmuch (available as .B notmuch.el |