--- /dev/null
+Return-Path: <jani@nikula.org>\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 A971B6DE0B29\r
+ for <notmuch@notmuchmail.org>; Thu, 11 Jun 2015 10:24:39 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.145\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.145 tagged_above=-999 required=5 tests=[AWL=0.865, \r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01] 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 875qLH45_8IU for <notmuch@notmuchmail.org>;\r
+ Thu, 11 Jun 2015 10:24:36 -0700 (PDT)\r
+Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com\r
+ [209.85.212.169])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 8BEB16DE0948\r
+ for <notmuch@notmuchmail.org>; Thu, 11 Jun 2015 10:24:35 -0700 (PDT)\r
+Received: by wibdq8 with SMTP id dq8so14740848wib.1\r
+ for <notmuch@notmuchmail.org>; Thu, 11 Jun 2015 10:24:31 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:subject:in-reply-to:references\r
+ :user-agent:date:message-id:mime-version:content-type\r
+ :content-transfer-encoding;\r
+ bh=gYlgoq/T9/n3eKwEFZYqfvAzKnpmnTRfO5rTfJZ1ieA=;\r
+ b=ISndxXEj7UNQjI7+e9VvUdMgEGww28a/rjLn/PTwFK/GTNA3N4+llQlA1eiqkfswZw\r
+ mSYsOPiAhCH/qTnwwKnm0er2Dts+SCs0VC1lFIrjnkwZ2uViRyosD0pnBT/WikUui1zR\r
+ WfIdkc/KqR3jD5/3db1I5lX46G9v18SIiA6j2h3QAfvipBY3V898fSEY2EZebIEf4XkX\r
+ X2b+ZHO+YPCCJC4Jqk3Yq0elU+WF0GgIpghLPZit1a3I4kO4+IIidtwaSKDX+hr5GA0B\r
+ QB8U569gvmj7BDUfyXDzO0WENrKAVxCO6rOlCpFYVxhg/y8FDtGa59qMYF2+t0y3hoHS\r
+ hEQg==\r
+X-Gm-Message-State:\r
+ ALoCoQnG7iURG2k2AWwKU3UqoAV3Uc5fF+0z1JFJvPOf4m4QNq00Z071rETVu+ZciYNYnKPru1q8\r
+X-Received: by 10.180.76.208 with SMTP id m16mr32288448wiw.39.1434043471582;\r
+ Thu, 11 Jun 2015 10:24:31 -0700 (PDT)\r
+Received: from localhost (mobile-access-bcee6b-244.dhcp.inet.fi.\r
+ [188.238.107.244])\r
+ by mx.google.com with ESMTPSA id be3sm2582038wib.21.2015.06.11.10.24.29\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Thu, 11 Jun 2015 10:24:30 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Robert =?utf-8?Q?K=C3=BCnnemann?= <robert@kunnemann.de>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: Syntactic sugar for range syntax\r
+In-Reply-To: <20150610153833.GA19301@peachum.local>\r
+References: <20150610153833.GA19301@peachum.local>\r
+User-Agent: Notmuch/0.19+86~gbed8b67 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Thu, 11 Jun 2015 20:24:36 +0300\r
+Message-ID: <87h9qejgyz.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\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: Thu, 11 Jun 2015 17:24:39 -0000\r
+\r
+On Wed, 10 Jun 2015, Robert K=C3=BCnnemann <robert@kunnemann.de> wrote:\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
+In other words, date:1w..\r
+\r
+The reference for relative dates is "now" if one is not specified. The\r
+minus sign means nothing, relative dates all refer to the past and are\r
+added together.\r
+\r
+> The following syntactic sugar could shorten this kind of queries:\r
+>=20=20\r
+> date:r -> date:r..today, if r is a relative date\r
+\r
+You can use open ended queries date:since.. or date:..until to not limit\r
+the end or start time.\r
+\r
+> date:a -> date:a..a, if a is an absolute date\r
+\r
+This needs support from Xapian, but we've discussed this in the past and\r
+agree on the semantics. There's a patch to make date:a..! mean the same\r
+in the mean time:\r
+\r
+http://mid.gmane.org/1425732959-2282-1-git-send-email-jani@nikula.org\r
+\r
+> date:a-r -> date:a-r..a, for combination.\r
+\r
+I think this conflicts with the above.\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
+\r
+date:1w..\r
+\r
+> date:24.12.2014-4w -> date:24.12.2014-4w..24.12.2014=20\r
+>\r
+> What do you think about this suggestion? Is this something notmuch would\r
+> do, or rather something for xapian?\r
+\r
+What we can do in notmuch is pretty limited unless we write a full blown\r
+custom query parser. Basically Xapian parses date: and .., and passes us\r
+the rest to figure out.\r
+\r
+\r
+HTH,\r
+Jani.\r
+\r
+\r
+>\r
+> With kind regards, Robert K=C3=BCnnemann\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r