summaryrefslogtreecommitdiff
path: root/notmuch.1
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-11-23 16:58:35 +0100
committerCarl Worth <cworth@cworth.org>2009-11-23 17:17:08 +0100
commit793cbf80495b8230e0b4de6ac609e2ca88b7dd4b (patch)
tree0847466d390d9ebf5ec63cc5a0c638a096de40d9 /notmuch.1
parenta378dff8a1b9136c3a2472dc6a88911ca3fa41b4 (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.115
1 files changed, 15 insertions, 0 deletions
diff --git a/notmuch.1 b/notmuch.1
index eeb1a94..c5a7711 100644
--- a/notmuch.1
+++ b/notmuch.1
@@ -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