Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5A77F431FBC for ; Sun, 26 Feb 2012 23:45:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iR8wIXAb87yg for ; Sun, 26 Feb 2012 23:45:02 -0800 (PST) Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66]) by olra.theworths.org (Postfix) with ESMTP id 64ACB431FAF for ; Sun, 26 Feb 2012 23:45:02 -0800 (PST) Received: by guru.guru-group.fi (Postfix, from userid 501) id 1CF8D68055; Mon, 27 Feb 2012 09:45:01 +0200 (EET) From: Tomi Ollila To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [RFC PATCH 0/2] natural language date range search In-Reply-To: <87ehtiitag.fsf@nikula.org> References: <87ehtiitag.fsf@nikula.org> User-Agent: Notmuch/0.11.1+225~g90fb4e8 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 07:45:03 -0000 On Sat, 25 Feb 2012 21:53:27 +0200, Jani Nikula wrote: > On Sat, 25 Feb 2012 17:05:44 +0200, Tomi Ollila wrote: [ ... ] > > > > By seeing the thoughts thrown in IRC there seems to be plenty if things > > to resolve until something like this is going to be available in stock > > notmuch. In the meanwhile I provide some ideas into the soup; maybe > > our collective mind can have some use of this. > > > > > > Q: Could 'date:timestr' be converted to 'date:timestr..timestr' ? > > AFAICT this would require the custom query parser. So, maybe someday... :) > > In this idea - means relative time and absolute > > time. The the time string consists of number and letter and assume > > the above suggestion for date:timestr (<- == date:timestr..timestr) > > Letters are s seconds h hours d days w weeks m months (more > > useful than for minutes) and y years. > > I'll put it bluntly: show me the code! ;) I would not have expected nothing less ;) > I'll comment below how your examples can be expressed with working code > in this series, just for comparison, and to show what can be done with > this. Great! Those features suits to my needs just fine; last day is most often needed, then parhaps I jump to one week. 5w is good for ~one month. More "absolute" times (like last november / since last november) are so seldomly needed that writing a bit more is not an issue :D [ ... ] > > BR, > Jani. Tomi