Re: [RFC PATCH 0/2] natural language date range search
authorTomi Ollila <tomi.ollila@iki.fi>
Mon, 27 Feb 2012 07:45:01 +0000 (09:45 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:00 +0000 (09:45 -0800)
07/41d69f92a8f2591b54050c611c85532e0c0e74 [new file with mode: 0644]

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