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 56385431FAF for ; Sat, 8 Dec 2012 14:32:24 -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 P4iIK49Mpccq for ; Sat, 8 Dec 2012 14:32:24 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 96CA7431FAE for ; Sat, 8 Dec 2012 14:32:23 -0800 (PST) Received: by mail-la0-f53.google.com with SMTP id w12so1233015lag.26 for ; Sat, 08 Dec 2012 14:32:22 -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=RHpudp8+5dHgPrpKX0WE7Tba+DWOqeyvBA+TvzW1plA=; b=MXObHArKFSaEA0TcXFEbSpsP8UoFOZT7Vn1OUKVQjQ1SpUl3BjdS8kekqotBs68Xgx n8jVv40d3tY8yXyNtlcLxA4E2He3uDVaeYnK7ksjZ1Vy8TAlZSHg2G7/FiISuTFhS7fa fFreXTDAyaq0Awc4k4uB4GTPLi0q46f3NfhZhhz8Gk+FObKuD4iD+4V00X1W2bv/QnLO meRl/ZqUKIyUbDd+HxRSRs9e1nRN0ut2Tzn0yhLK7jcQ9+usn9F3fiIYXKtm+X8SnJ4q dewYcHBwvbCbShxzp6p/PKHJJOQBMsrzRnoMv0EZOmcPZU3ht9h8e7Ucc4XKcssvXQi2 KDRA== Received: by 10.112.49.97 with SMTP id t1mr4175596lbn.58.1355005942049; Sat, 08 Dec 2012 14:32:22 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id pg5sm4598575lab.6.2012.12.08.14.32.19 (version=SSLv3 cipher=OTHER); Sat, 08 Dec 2012 14:32:20 -0800 (PST) From: Jani Nikula To: Jameson Graef Rollins , David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] TODO: date range queries - check In-Reply-To: <871uf0fdnh.fsf@servo.finestructure.net> References: <1354833276-6219-1-git-send-email-jani@nikula.org> <877gouine4.fsf@servo.finestructure.net> <871uf2ukat.fsf@zancas.localnet> <877gothkzw.fsf@servo.finestructure.net> <87624dzgso.fsf@nikula.org> <87boe5fsdn.fsf@servo.finestructure.net> <87r4n0smot.fsf@zancas.localnet> <871uf0fdnh.fsf@servo.finestructure.net> User-Agent: Notmuch/0.14+138~g7041c56 (http://notmuchmail.org) Emacs/23.4.1 (i686-pc-linux-gnu) Date: Sun, 09 Dec 2012 00:32:18 +0200 Message-ID: <87sj7gp43x.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQk3aBWPYQu9G36xiQS0ZdO9Ldqgh3iocdVwmkDWz2oZM0KHltkqa9iiVKdzWZxhPWh3PgX0 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: Sat, 08 Dec 2012 22:32:24 -0000 On Sat, 08 Dec 2012, Jameson Graef Rollins wrote: > On Sat, Dec 08 2012, David Bremner wrote: >> Patch? Concrete wording suggestion? > > How about: > > It would be nice to not require both endpoints to be specified in date > searches. For example it would be nice to be able to say things like > "date:2009-01-1", to specify a search over a particular day, or > "since:'1 month' to specify an open-ended range, and have the other > endpoint be implicit. 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. FWIW, this means, in practice: Make date: an alias for date:.. Make since: an alias for date:.. Make until: an alias for date:.. We'll either need to write our own query parser or some new features to upstream Xapian to do any of these. BR, Jani.