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

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

Date: Sun, 19 Apr 2015 08:39:38 +0000

To: Mark Walters, Jani Nikula, notmuch@notmuchmail.org

Cc:

From: Gaute Hope


Excerpts from Mark Walters's message of April 17, 2015 20:57:
> 
> Hi
> 
> On Sat, 07 Mar 2015, Jani Nikula <jani@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


Thread: