On Mon, Jan 21, 2013 at 12:42:48PM -0800, Ethan Schoonover wrote:
I've added two virtual date-range folders as a test. They work
great and I
thought others might find them useful (I'm excluding my spam folder here,
but others might want to use tags/other)
[...]
This leads to a question: since the date timestamp is only calculated when
the muttrc is read in, these two folders will *expand* in date range over
time (the start timestamp is static, actual space-time isn't), can anyone
come up with a way to refresh this query syntax occasionally?
Notmuch 0.15 supports searching with relative dates (and many other
convenient formats). Here is an excerpt from the notmuch-search-terms
manpage:
Relative date and time
[N|number] (years|months|weeks|days|hours|hrs|minutes|mins|seconds|secs) [...]
All refer to past, can be repeated and will be accumulated.
Units can be abbreviated to any length, with the otherwise ambiguous
single m being m for minutes and M for months.
Number can also be written out one, two, ..., ten, dozen, hundred.
Additionally, the unit may be preceded by "last" or "this" (e.g.,
"last week" or "this month").
When combined with absolute date and time, the relative date and time
specification will be relative from the specified absolute date and
time.
Examples: 5M2d, two weeks
[...]
Hope this helps,
--
Suvayu
Open source is the future. It sets us free.