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