Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 30BCB431FC0 for ; Tue, 22 Jan 2013 10:19:30 -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 KfY+Mxc8SPOB for ; Tue, 22 Jan 2013 10:19:29 -0800 (PST) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 8FE78431FAF for ; Tue, 22 Jan 2013 10:19:29 -0800 (PST) Received: by mail-lb0-f179.google.com with SMTP id j14so813101lbo.24 for ; Tue, 22 Jan 2013 10:19:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=2DN+AvqFU6HHVvEf/HUxWcF+q+noQfkjmpELvJGymfQ=; b=Ku/RNI7/TrFO+Ualv3uC9vSTGQCRcQG4EnltyRIrUh1PyWj2cVfWysLsyQa4M8s+vi hTVNvMTJvrwJNgNOvJGzIyJvdwXvEiHWpCWkFhz6zDSMM6WpVHkZHMU52aG6zx/3CiUs 1ZLtFORqE9yi+82geCWf81VjMFD3jN2UP+B374Y85rGFu4YSMc/7ltlkqFijdyf9Hq7A UkcxfPRn11Thwo3pWd1KZw4olOikTux/Nb16MNVNeMucknU4qnE8wvtARq0hhS5fpiSa emMplreoyvPAy0psk2YC7c+hHzE++bxfJLz72pq9XXL9RuxWMRsR9ARz4Ik2RC90M0Z2 6Zaw== X-Received: by 10.112.86.232 with SMTP id s8mr9570634lbz.86.1358878766586; Tue, 22 Jan 2013 10:19:26 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id q4sm7376082lbj.15.2013.01.22.10.19.24 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 22 Jan 2013 10:19:25 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH] TODO: update entry on date range queries Date: Tue, 22 Jan 2013 20:19:25 +0200 Message-Id: <1358878765-23940-1-git-send-email-jani@nikula.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmYGc5Jh7MJh/oJrcra5QqPCpV0LdnQnnaPVUfuR2LvNG/owyN/O2mPt/dz/1a3eEIDfREd 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: Tue, 22 Jan 2013 18:19:30 -0000 --- devel/TODO | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/devel/TODO b/devel/TODO index eb757af..9eaa7bd 100644 --- a/devel/TODO +++ b/devel/TODO @@ -163,12 +163,13 @@ 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 +Improve syntax for date ranges queries. date:expr should be +interpreted as date:expr..expr so that, for example, "date:2013-01-22" +would cover the whole of the specified day (currently that's not even +recognized as a date range expression). It might be nice to be able to +use things like "since:2013-01-22" and "until:2013-01-22" as synonyms +to "date:2013-01-22.." and "date:..2013-01-22", respectively. To do +any of this we're probably going to need to break down and write our own parser for the query string rather than using Xapian's QueryParser class. -- 1.7.10.4