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