[RFC] lib: add support for date:<query>..! to mean date:<query>..<query>

Gaute Hope eg at gaute.vetsj.com
Sun Apr 19 01:39:38 PDT 2015


Excerpts from Mark Walters's message of April 17, 2015 20:57:
> 
> Hi
> 
> On Sat, 07 Mar 2015, Jani Nikula <jani at nikula.org> wrote:
>> Up to debate:
>>
>> 1) Is something like this useful at all as an intermediate step before
>> we can have support for date:<query>? (This can be done with a future
>> version of Xapian, or with a custom query query parser.)
> 
> This looks good to me. Yes it may not be needed in the future but the
> patch is very small. It passes all tests. +1 from me.
> 
>> 2) If yes, are there better alternatives to "!" as the end point? (Or
>> should the special case be the start point?) Also "@" and "same" have
>> been suggested. Examples: date:yesterday..! date:today..@
>> date:@..monday date:january..same.
> 
> I would be happy with any of these.

I am probably missing something, but why do you need the end
point?

  date:2015-04-16 mean date:2015-04-16..2015-04-16?
  date:<query> -> date:<query>..<query>

- gaute



More information about the notmuch mailing list