diff options
author | Eric Wong <e@80x24.org> | 2016-08-16 08:49:26 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-08-16 21:30:57 +0000 |
commit | 1031291ec876cf3791077aa7d564a8bf8561ee1f (patch) | |
tree | a8c18a9c687e800002dd3ec798af8966face62db /t | |
parent | 3fc411c772a21d8faeec3fde32b101bc86190ddb (diff) | |
download | public-inbox-1031291ec876cf3791077aa7d564a8bf8561ee1f.tar.gz |
This is similar to mairix in that it uses a "d:" prefix; but only takes YYYYMMDD, for now. Using custom date/time parsers via Perl will be much more work: nntp://news.gmane.org/20151005222157.GE5880@survex.com Anyhow, this ought to be more human-friendly than searching by Unix timestamps, but it requires reindexing to take advantage of.
Diffstat (limited to 't')
-rw-r--r-- | t/search.t | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -315,6 +315,15 @@ sub filter_mids { 'UTF-8 subject preserved'); } +{ + my $res = $ro->query('d:19931002..20101002'); + ok(scalar @{$res->{msgs}} > 0, 'got results within range'); + $res = $ro->query('d:20101003..'); + is(scalar @{$res->{msgs}}, 0, 'nothing after 20101003'); + $res = $ro->query('d:..19931001'); + is(scalar @{$res->{msgs}}, 0, 'nothing before 19931001'); +} + done_testing(); 1; |