]> Sergey Matveev's repositories - public-inbox.git/commit
lei q: --save preserves relative time queries
authorEric Wong <e@80x24.org>
Fri, 16 Apr 2021 23:10:27 +0000 (16:10 -0700)
committerEric Wong <e@80x24.org>
Sat, 17 Apr 2021 02:24:47 +0000 (22:24 -0400)
commit2e4e4b0d6f30d9d4612066395ba694c7c7d61e6e
tree7478cde9a242d7828792c458c442f6e69d3331d3
parentfd3b46aa0577d62553f61054270db6626ccc6759
lei q: --save preserves relative time queries

Somebody may want a saved search which consistently asks for
messages within a rolling time period window.  In other words,
we want to support using "lei q --save dt:last.week.." and keeps
the "dt:last.week.." relative to whenever "lei up" is run.  This
ensures relative date-time specifications get used in the future
rather than converting into an absolute date-time from the
initial "lei q" invocation.
lib/PublicInbox/LeiQuery.pm
lib/PublicInbox/LeiSavedSearch.pm
t/lei-q-save.t