Syntactic sugar for range syntax
authorRobert Künnemann <robert@kunnemann.de>
Wed, 10 Jun 2015 15:38:33 +0000 (17:38 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:01 +0000 (14:49 -0700)
10/957d2f39c061240dc41d78fa28b2cb36da0ac9 [new file with mode: 0644]

diff --git a/10/957d2f39c061240dc41d78fa28b2cb36da0ac9 b/10/957d2f39c061240dc41d78fa28b2cb36da0ac9
new file mode 100644 (file)
index 0000000..f64ad9e
--- /dev/null
@@ -0,0 +1,80 @@
+Return-Path: <robert@kunnemann.de>\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 6D95B6DE0943\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Jun 2015 08:57:01 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.001\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[AWL=0.001, \r
+ RCVD_IN_DNSWL_NONE=-0.0001] 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 QBd19kenvG1N for <notmuch@notmuchmail.org>;\r
+ Wed, 10 Jun 2015 08:56:59 -0700 (PDT)\r
+X-Greylist: delayed 1100 seconds by postgrey-1.35 at arlo;\r
+ Wed, 10 Jun 2015 08:56:58 PDT\r
+Received: from wp251.webpack.hosteurope.de (wp251.webpack.hosteurope.de\r
+ [80.237.133.20])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id F36856DE0244\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Jun 2015 08:56:58 -0700 (PDT)\r
+Received: from dslb-088-069-220-164.088.069.pools.vodafone-ip.de\r
+ ([88.69.220.164] helo=localhost); authenticated\r
+ by wp251.webpack.hosteurope.de running ExIM with esmtpsa\r
+ (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\r
+ id 1Z2i5J-0001DX-Pn; Wed, 10 Jun 2015 17:38:33 +0200\r
+Date: Wed, 10 Jun 2015 17:38:33 +0200\r
+From: Robert =?iso-8859-1?Q?K=FCnnemann?= <robert@kunnemann.de>\r
+To: notmuch@notmuchmail.org\r
+Subject: Syntactic sugar for range syntax\r
+Message-ID: <20150610153833.GA19301@peachum.local>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=iso-8859-1; format=flowed\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: 8bit\r
+User-Agent: Mutt/1.5.23.1 (2014-03-12)\r
+X-bounce-key: webpack.hosteurope.de;robert@kunnemann.de;1433951819;9b1d2141;\r
+X-Mailman-Approved-At: Thu, 11 Jun 2015 04:27:39 -0700\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: Wed, 10 Jun 2015 15:57:01 -0000\r
+\r
+Hi everyone,\r
+\r
+I've been using notmuch for about a year now (using mutt-kz) and I am\r
+very happy with it. I have, however, a small suggestion about the range\r
+syntax in search queries. Often, I am looking for emails that have\r
+occurred, say, in the last week. The query has the following form:\r
+\r
+ date:today-1week..today\r
+\r
+The following syntactic sugar could shorten this kind of queries:\r
\r
+ date:r -> date:r..today, if r is a relative date\r
+ date:a -> date:a..a, if a is an absolute date\r
+ date:a-r -> date:a-r..a, for combination.\r
+\r
+(If r is interpreted as today-r, the first two transformations are\r
+subsumed by the last.)\r
+\r
+For example:\r
+ date:today -> date:today..today\r
+ date:-1week -> date:-1week..today\r
+ date:24.12.2014-4w -> date:24.12.2014-4w..24.12.2014 \r
+\r
+What do you think about this suggestion? Is this something notmuch would\r
+do, or rather something for xapian?\r
+\r
+With kind regards, Robert Künnemann\r