Re: [PATCH] lib: add support for date:<expr>..! to mean date:<expr>..<expr>
authorDavid Bremner <david@tethera.net>
Sat, 26 Sep 2015 01:03:29 +0000 (22:03 +2100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:38 +0000 (14:49 -0700)
d8/8efb66b54dbd06dd6b72414b4631267303b8c7 [new file with mode: 0644]

diff --git a/d8/8efb66b54dbd06dd6b72414b4631267303b8c7 b/d8/8efb66b54dbd06dd6b72414b4631267303b8c7
new file mode 100644 (file)
index 0000000..c88ee4e
--- /dev/null
@@ -0,0 +1,64 @@
+Return-Path: <david@tethera.net>\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 8299B6DE0924\r
+ for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 18:05:41 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.112\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.112 tagged_above=-999 required=5 tests=[AWL=0.112]\r
+ 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 6_xmlISyqSuo for <notmuch@notmuchmail.org>;\r
+ Fri, 25 Sep 2015 18:05:39 -0700 (PDT)\r
+Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 6438A6DE02D2\r
+ for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 18:05:39 -0700 (PDT)\r
+Received: from remotemail by gitolite.debian.net with local (Exim 4.80)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1Zfdu0-0007U2-KB; Sat, 26 Sep 2015 01:03:48 +0000\r
+Received: (nullmailer pid 21540 invoked by uid 1000); Sat, 26 Sep 2015\r
+ 01:03:29 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] lib: add support for date:<expr>..! to mean\r
+ date:<expr>..<expr>\r
+In-Reply-To: <1439637947-12147-1-git-send-email-jani@nikula.org>\r
+References: <87k2vegsda.fsf@maritornes.cs.unb.ca>\r
+ <1439637947-12147-1-git-send-email-jani@nikula.org>\r
+User-Agent: Notmuch/0.20.2+73~gd432116 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Fri, 25 Sep 2015 22:03:29 -0300\r
+Message-ID: <87r3lm0z6m.fsf@zancas.localnet>\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 01:05:41 -0000\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
+d\r