Re: [PATCH] lib: add support for date:<expr>..! to mean date:<expr>..<expr>
[notmuch-archives.git] / d8 / 8efb66b54dbd06dd6b72414b4631267303b8c7
1 Return-Path: <david@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 8299B6DE0924\r
6  for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 18:05:41 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.112\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.112 tagged_above=-999 required=5 tests=[AWL=0.112]\r
12  autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id 6_xmlISyqSuo for <notmuch@notmuchmail.org>;\r
16  Fri, 25 Sep 2015 18:05:39 -0700 (PDT)\r
17 Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])\r
18  by arlo.cworth.org (Postfix) with ESMTPS id 6438A6DE02D2\r
19  for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 18:05:39 -0700 (PDT)\r
20 Received: from remotemail by gitolite.debian.net with local (Exim 4.80)\r
21  (envelope-from <david@tethera.net>)\r
22  id 1Zfdu0-0007U2-KB; Sat, 26 Sep 2015 01:03:48 +0000\r
23 Received: (nullmailer pid 21540 invoked by uid 1000); Sat, 26 Sep 2015\r
24  01:03:29 -0000\r
25 From: David Bremner <david@tethera.net>\r
26 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
27 Subject: Re: [PATCH] lib: add support for date:<expr>..! to mean\r
28  date:<expr>..<expr>\r
29 In-Reply-To: <1439637947-12147-1-git-send-email-jani@nikula.org>\r
30 References: <87k2vegsda.fsf@maritornes.cs.unb.ca>\r
31  <1439637947-12147-1-git-send-email-jani@nikula.org>\r
32 User-Agent: Notmuch/0.20.2+73~gd432116 (http://notmuchmail.org) Emacs/24.5.1\r
33  (x86_64-pc-linux-gnu)\r
34 Date: Fri, 25 Sep 2015 22:03:29 -0300\r
35 Message-ID: <87r3lm0z6m.fsf@zancas.localnet>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.18\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42  <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Sat, 26 Sep 2015 01:05:41 -0000\r
51 \r
52 Jani Nikula <jani@nikula.org> writes:\r
53 \r
54 > It doesn't seem likely we can support simple date:<expr> expanding to\r
55 > date:<expr>..<expr> any time soon. (This can be done with a future\r
56 > version of Xapian, or with a custom query query parser.) In the mean\r
57 > time, provide shorthand date:<expr>..! to mean the same. This is\r
58 > useful, as the expansion takes place before interpetation, and we can\r
59 > use, for example, date:yesterday..! to match from beginning of\r
60 > yesterday to end of yesterday.\r
61 \r
62 pushed. At some point we probably want a NEWS item.\r
63 \r
64 d\r