Re: [PATCH v3 6/9] lib: add date range query support
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 25 Sep 2012 12:15:46 +0000 (14:15 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:37 +0000 (09:49 -0800)
37/e4c2ced22ebf7633267786a3c66637ec1dee33 [new file with mode: 0644]

diff --git a/37/e4c2ced22ebf7633267786a3c66637ec1dee33 b/37/e4c2ced22ebf7633267786a3c66637ec1dee33
new file mode 100644 (file)
index 0000000..b59cbbb
--- /dev/null
@@ -0,0 +1,96 @@
+Return-Path: <sojkam1@fel.cvut.cz>\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 54FE4431E84\r
+       for <notmuch@notmuchmail.org>; Tue, 25 Sep 2012 05:23:29 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] 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 NxzUVKMTKEyJ for <notmuch@notmuchmail.org>;\r
+       Tue, 25 Sep 2012 05:23:27 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id A5CD7429E34\r
+       for <notmuch@notmuchmail.org>; Tue, 25 Sep 2012 05:23:15 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 2C2CC3CFF59;\r
+       Tue, 25 Sep 2012 14:22:26 +0200 (CEST)\r
+X-Virus-Scanned: IMAP AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+       by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
+       port 10044)\r
+       with ESMTP id vXk216IIFgjI; Tue, 25 Sep 2012 14:22:17 +0200 (CEST)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 5ADCA19F33A8;\r
+       Tue, 25 Sep 2012 14:16:01 +0200 (CEST)\r
+Received: from steelpick.2x.cz (unknown [213.29.198.144])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id 1E1E8660968;\r
+       Tue, 25 Sep 2012 14:15:52 +0200 (CEST)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.80)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1TGU3G-0001g5-Mu; Tue, 25 Sep 2012 14:15:46 +0200\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Michal Nazarewicz <mina86@mina86.com>, Jani Nikula <jani@nikula.org>,\r
+       notmuch@notmuchmail.org, David Bremner <david@tethera.net>\r
+Subject: Re: [PATCH v3 6/9] lib: add date range query support\r
+In-Reply-To: <xa1tsjamdvj6.fsf@mina86.com>\r
+References: <cover.1347484177.git.jani@nikula.org>\r
+       <532340d05ea748518c021048900bb83149e04e88.1347484177.git.jani@nikula.org>\r
+       <xa1tsjamdvj6.fsf@mina86.com>\r
+User-Agent: Notmuch/0.14+23~g9d68aca (http://notmuchmail.org) Emacs/24.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 25 Sep 2012 14:15:46 +0200\r
+Message-ID: <87wqzi1eod.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Tue, 25 Sep 2012 12:23:29 -0000\r
+\r
+On Thu, Sep 13 2012, Michal Nazarewicz wrote:\r
+> On Wed, Sep 12 2012, Jani Nikula wrote:\r
+>> Add a custom value range processor to enable date and time searches of\r
+>> the form date:since..until, where "since" and "until" are expressions\r
+>> understood by the previously added date/time parser, to restrict the\r
+>> results to messages within a particular time range (based on the Date:\r
+>> header).\r
+>>\r
+>> If "since" or "until" describes date/time at an accuracy of days or\r
+>> less, the values are rounded according to the accuracy, towards past\r
+>> for "since" and towards future for "until". For example,\r
+>> date:november..yesterday would match from the beginning of November\r
+>> until the end of yesterday. Expressions such as date:today..today\r
+>> means since the beginning of today until the end of today.\r
+>\r
+> IMO this is totally unintuitive and not how the range should work.\r
+> date:foo..bar should return messages whose date >= foo and < bar.  So\r
+> for instance date:november..yesterday should return messages whose date\r
+> is > 2012/11/01 00:00:00 and < 2012/09/12 00:00:00.  So to get\r
+> yesterdays messages one would do: date:yesterday..today.\r
+\r
+For me, date:monday..wednesday means all messages received on monday,\r
+tuseday or wednesday. If I say Wednesday, I'm really interested in\r
+Wednesday and not the day before Wednesday.\r
+\r
+I'd also like to allow syntax like date:yesterday with the meaning all\r
+messages sent yesterday. My idea how to implement this was described in\r
+id:"87bovryqp0.fsf@steelpick.2x.cz". Unfortunately, I have no time to\r
+implement it myself.\r
+\r
+-Michal\r