Re: [PATCH] lib: add support for date:<expr>..! to mean date:<expr>..<expr>
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 26 Sep 2015 13:55:02 +0000 (16:55 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:39 +0000 (14:49 -0700)
88/7b078807a2e241cab0bbb27186dc9d610857d7 [new file with mode: 0644]

diff --git a/88/7b078807a2e241cab0bbb27186dc9d610857d7 b/88/7b078807a2e241cab0bbb27186dc9d610857d7
new file mode 100644 (file)
index 0000000..d463519
--- /dev/null
@@ -0,0 +1,74 @@
+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 arlo.cworth.org (Postfix) with ESMTP id 0D8EE6DE0FC5\r
+ for <notmuch@notmuchmail.org>; Sat, 26 Sep 2015 06:55:00 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.151\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.151 tagged_above=-999 required=5 tests=[AWL=-0.245,\r
+  SPF_NEUTRAL=0.652, URIBL_SBL=0.644, URIBL_SBL_A=0.1] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id Je4x25PD8iPh for <notmuch@notmuchmail.org>;\r
+ Sat, 26 Sep 2015 06:54:58 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id AA2DF6DE09B0\r
+ for <notmuch@notmuchmail.org>; Sat, 26 Sep 2015 06:54:57 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id B98D310008D;\r
+ Sat, 26 Sep 2015 16:55:02 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Bremner <david@tethera.net>, Jani Nikula <jani@nikula.org>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] lib: add support for date:<expr>..! to mean\r
+ date:<expr>..<expr>\r
+In-Reply-To: <87r3lm0z6m.fsf@zancas.localnet>\r
+References: <87k2vegsda.fsf@maritornes.cs.unb.ca>\r
+ <1439637947-12147-1-git-send-email-jani@nikula.org>\r
+ <87r3lm0z6m.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.20.2+68~g0c35549 (http://notmuchmail.org) Emacs/24.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: Sat, 26 Sep 2015 16:55:02 +0300\r
+Message-ID: <m2d1x5i8uh.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Sat, 26 Sep 2015 13:55:00 -0000\r
+\r
+On Sat, Sep 26 2015, David Bremner <david@tethera.net> wrote:\r
+\r
+> Jani Nikula <jani@nikula.org> writes:\r
+>\r
+>> It doesn't seem likely we can support simple date:<expr> expanding to\r
+>> date:<expr>..<expr> any time soon. (This can be done with a future\r
+>> version of Xapian, or with a custom query query parser.) In the mean\r
+>> time, provide shorthand date:<expr>..! to mean the same. This is\r
+>> useful, as the expansion takes place before interpetation, and we can\r
+>> use, for example, date:yesterday..! to match from beginning of\r
+>> yesterday to end of yesterday.\r
+>\r
+> pushed. At some point we probably want a NEWS item.\r
+\r
+If it is in the NEWS, it is perpetual, otoh if only in documentation we\r
+could theoretically deprecate and remove it easier in the future ... ;p\r
+\r
+> d\r
+\r
+Tomi\r