From d82e0c196fbbadbcc8d1df6a8e659b8641fa5477 Mon Sep 17 00:00:00 2001 From: David Belohrad Date: Tue, 21 May 2013 16:29:21 +0200 Subject: [PATCH] Re: how the date query works? --- e1/0fc6bf58829d1e694123810ee18468e1a10dfa | 85 +++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 e1/0fc6bf58829d1e694123810ee18468e1a10dfa diff --git a/e1/0fc6bf58829d1e694123810ee18468e1a10dfa b/e1/0fc6bf58829d1e694123810ee18468e1a10dfa new file mode 100644 index 000000000..9b8fdde01 --- /dev/null +++ b/e1/0fc6bf58829d1e694123810ee18468e1a10dfa @@ -0,0 +1,85 @@ +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 93C57431FC0 + for ; Tue, 21 May 2013 07:29:33 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 BEqbztICG4vC for ; + Tue, 21 May 2013 07:29:29 -0700 (PDT) +Received: from server.belohrad.ch (static-212-101-19-163.adsl.solnet.ch + [212.101.19.163]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 481A0431FB6 + for ; Tue, 21 May 2013 07:29:29 -0700 (PDT) +Received: from beesknees.cern.ch.belohrad.ch (beesknees.cern.ch + [137.138.197.99]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) (Authenticated sender: david) + by server.belohrad.ch (Postfix) with ESMTPSA id BBD062C002C; + Tue, 21 May 2013 16:29:34 +0200 (CEST) +From: David Belohrad +To: Jani Nikula , notmuch +Subject: Re: how the date query works? +In-Reply-To: <87mwrpvima.fsf@nikula.org> +References: <87mwrpvima.fsf@nikula.org> +User-Agent: Notmuch/0.15.2+73~g1c450ec (http://notmuchmail.org) Emacs/23.2.1 + (x86_64-pc-linux-gnu) +Date: Tue, 21 May 2013 16:29:21 +0200 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +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, 21 May 2013 14:29:33 -0000 + +thanks to everybody. i have completely missed that man page. + +.d. + + + +Jani Nikula writes: + +> On Mon, 20 May 2013, David Belohrad wrote: +>> When I open in emacs search, and I type 'date:today', some output +>> appears, but not the one I would expect. +> +> The date: search expects a Xapian range expression, which requires ".." +> to be present in the query. For example, date:today..today from +> beginning of today to end of today, which I believe is what you're +> after. Half open ranges are okay, too, so assuming you don't have much +> mail from the future, simply date:today.. will do. +> +> Unfortunately, due to a limitation in Xapian, we can't flag an error or +> do the right thing given a date: search without the range expression +> ".." +> +>> Is there any kind of manual how to use it? I'm of course particularly +>> interested in 'today', 'yesterday', 'last week', 'last month' :) +> +> The search terms manual page, 'man notmuch-search-terms', which is also +> available at http://notmuchmail.org/manpages/notmuch-search-terms-7/ +> gives a pretty good summary on the date search, including the +> limitations. +> +> HTH, +> Jani. -- 2.26.2