From cd1210147d6e85be7a14cd73321a096a4134e2ad Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Mon, 27 Feb 2012 09:45:01 +0200 Subject: [PATCH] Re: [RFC PATCH 0/2] natural language date range search --- 07/41d69f92a8f2591b54050c611c85532e0c0e74 | 94 +++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 07/41d69f92a8f2591b54050c611c85532e0c0e74 diff --git a/07/41d69f92a8f2591b54050c611c85532e0c0e74 b/07/41d69f92a8f2591b54050c611c85532e0c0e74 new file mode 100644 index 000000000..7e872f1e8 --- /dev/null +++ b/07/41d69f92a8f2591b54050c611c85532e0c0e74 @@ -0,0 +1,94 @@ +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 -- 2.26.2