[PATCH] TODO: date range queries - check

Jani Nikula jani at nikula.org
Fri Dec 7 00:58:06 PST 2012


On Fri, 07 Dec 2012, Jameson Graef Rollins <jrollins at finestructure.net> wrote:
> On Thu, Dec 06 2012, Jani Nikula <jani at nikula.org> wrote:
>> ---
>>  devel/TODO |    9 ---------
>>  1 file changed, 9 deletions(-)
>>
>> diff --git a/devel/TODO b/devel/TODO
>> index eb757af..277a997 100644
>> --- a/devel/TODO
>> +++ b/devel/TODO
>> @@ -163,15 +163,6 @@ vs. tag-when-all-files-flagged (* above)).
>>  Add an interface to accept a "key" and a byte stream, rather than a
>>  filename.
>>  
>> -Provide a sane syntax for date ranges. First, we don't want to require
>> -both endpoints to be specified. For example it would be nice to be
>> -able to say things like "since:2009-01-1" or "until:2009-01-1" and
>> -have the other endpoint be implicit. Second we'd like to support
>> -relative specifications of time such as "since:'2 months ago'". To do
>> -any of this we're probably going to need to break down an write our
>> -own parser for the query string rather than using Xapian's QueryParser
>> -class.
>> -
>
> Has this TODO really been resolved?  Do searches like "since:2009-01-1"
> or "until:2009-01-1" really now work?  As far as I can tell they don't.
> Nor are they documented if they do.

Well, it does say "for example" and "things like" for since: and until:,
and it's not like the TODO is a strict spec anyway. All of the
functionality is there. You can use "date:2009-01-01.." or
"date:..2009-01-01" and the other endpoint is implicit (since Xapian
1.2.1). Relative specification of time is there. Subjectively, with a
sane syntax too. And it's all documented.

BR,
Jani.


More information about the notmuch mailing list