Re: [PATCH] TODO: date range queries - check
authorJani Nikula <jani@nikula.org>
Fri, 7 Dec 2012 08:58:06 +0000 (09:58 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:51:41 +0000 (09:51 -0800)
7a/52f4e4a3e1ac5ddcfb7716c5c1357db6a2c09a [new file with mode: 0644]

diff --git a/7a/52f4e4a3e1ac5ddcfb7716c5c1357db6a2c09a b/7a/52f4e4a3e1ac5ddcfb7716c5c1357db6a2c09a
new file mode 100644 (file)
index 0000000..db948ae
--- /dev/null
@@ -0,0 +1,105 @@
+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 olra.theworths.org (Postfix) with ESMTP id BBB64431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 00:58:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 wE0dCWmOacuW for <notmuch@notmuchmail.org>;\r
+       Fri,  7 Dec 2012 00:58:15 -0800 (PST)\r
+Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com\r
+ [74.125.82.47])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ ECDFE431FAE   for <notmuch@notmuchmail.org>; Fri,  7 Dec 2012 00:58:14 -0800\r
+ (PST)\r
+Received: by mail-wg0-f47.google.com with SMTP id dq11so131082wgb.2\r
+       for <notmuch@notmuchmail.org>; Fri, 07 Dec 2012 00:58:12 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+       :mime-version:content-type:x-gm-message-state;\r
+       bh=EHVTVZuzsuUbniynsa0JGSAW2BaeZ9DY44J8qUmgRfA=;\r
+       b=Q16t9TRtZln5tdtrZAVs5Wi3ek8DkwpHkgGULuHqcTOMCQf+DP5fuGlBV9uf3l38zq\r
+       cV8+hGwUEmPtm7ku1HDsnRscReYgN++SkARUqLKq/7SSgKtfi41hpTm/J5gFGEjALoJ3\r
+       hSY0XiN8c/ntH96JtrEjl4IN5X8t9+Ai8w9x0YZOz9nIdFMDoTnJ3OSmaokq5YJBzVEz\r
+       tBtSl2Xv8GgHMvb8dm49tHufCb3vrPuDNZ5Ee+2MupLLY2R75j3DeAafjzy53Cdqkcsw\r
+       Lq8/taMg2fz/Y7ok7LDN7/qQ7nJH7WL3RbmUb7i6qCk2bwcY5UAOn/7a9HMBnGnVemb8\r
+       1/Eg==\r
+Received: by 10.180.94.226 with SMTP id df2mr13543972wib.11.1354870692408;\r
+       Fri, 07 Dec 2012 00:58:12 -0800 (PST)\r
+Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
+       by mx.google.com with ESMTPS id h19sm20329274wiv.7.2012.12.07.00.58.10\r
+       (version=SSLv3 cipher=OTHER); Fri, 07 Dec 2012 00:58:11 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] TODO: date range queries - check\r
+In-Reply-To: <877gouine4.fsf@servo.finestructure.net>\r
+References: <1354833276-6219-1-git-send-email-jani@nikula.org>\r
+       <877gouine4.fsf@servo.finestructure.net>\r
+User-Agent: Notmuch/0.14+137~gda2ee8b (http://notmuchmail.org) Emacs/23.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 07 Dec 2012 09:58:06 +0100\r
+Message-ID: <87k3su9r35.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQnEnKTf9z613NCPIQuslmOfX4PzYYYNEdJZgCTgJbKpx/BPYfUyeMmkXGeQEjoISi9rm0WE\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: Fri, 07 Dec 2012 08:58:15 -0000\r
+\r
+On Fri, 07 Dec 2012, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
+> On Thu, Dec 06 2012, Jani Nikula <jani@nikula.org> wrote:\r
+>> ---\r
+>>  devel/TODO |    9 ---------\r
+>>  1 file changed, 9 deletions(-)\r
+>>\r
+>> diff --git a/devel/TODO b/devel/TODO\r
+>> index eb757af..277a997 100644\r
+>> --- a/devel/TODO\r
+>> +++ b/devel/TODO\r
+>> @@ -163,15 +163,6 @@ vs. tag-when-all-files-flagged (* above)).\r
+>>  Add an interface to accept a "key" and a byte stream, rather than a\r
+>>  filename.\r
+>>  \r
+>> -Provide a sane syntax for date ranges. First, we don't want to require\r
+>> -both endpoints to be specified. For example it would be nice to be\r
+>> -able to say things like "since:2009-01-1" or "until:2009-01-1" and\r
+>> -have the other endpoint be implicit. Second we'd like to support\r
+>> -relative specifications of time such as "since:'2 months ago'". To do\r
+>> -any of this we're probably going to need to break down an write our\r
+>> -own parser for the query string rather than using Xapian's QueryParser\r
+>> -class.\r
+>> -\r
+>\r
+> Has this TODO really been resolved?  Do searches like "since:2009-01-1"\r
+> or "until:2009-01-1" really now work?  As far as I can tell they don't.\r
+> Nor are they documented if they do.\r
+\r
+Well, it does say "for example" and "things like" for since: and until:,\r
+and it's not like the TODO is a strict spec anyway. All of the\r
+functionality is there. You can use "date:2009-01-01.." or\r
+"date:..2009-01-01" and the other endpoint is implicit (since Xapian\r
+1.2.1). Relative specification of time is there. Subjectively, with a\r
+sane syntax too. And it's all documented.\r
+\r
+BR,\r
+Jani.\r