--- /dev/null
+Return-Path: <jani@nikula.org>\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 406DD431FBC\r
+ for <notmuch@notmuchmail.org>; Mon, 20 May 2013 07:19:55 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 U+J1n5RuY3IA for <notmuch@notmuchmail.org>;\r
+ Mon, 20 May 2013 07:19:49 -0700 (PDT)\r
+Received: from mail-we0-f172.google.com (mail-we0-f172.google.com\r
+ [74.125.82.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 04338431FB6\r
+ for <notmuch@notmuchmail.org>; Mon, 20 May 2013 07:19:48 -0700 (PDT)\r
+Received: by mail-we0-f172.google.com with SMTP id w62so373205wes.31\r
+ for <notmuch@notmuchmail.org>; Mon, 20 May 2013 07:19:47 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=google.com; s=20120113;\r
+ h=x-received:from:to:subject:in-reply-to:references:user-agent:date\r
+ :message-id:mime-version:content-type:x-gm-message-state;\r
+ bh=MN5Kcl79X4/c7phmX1WJcWsbvNomXC8g9xkxQZaSeEI=;\r
+ b=H62ma55hI/kkM8cb2JHI5+5gnsiTJHocN1RSEL9Xnsg1NRIAubPeiIy+JmfE7WnTXz\r
+ 8ieQ2L9lTQao9PDP4oVZXi9sbO1mINkNAWOGIJlm7GwyFfGvj3WK5dlmKPTVWC5B0XCv\r
+ LHPJt9zKXgL5UNsOI9CYxgPrR+oCKZlzgkYAieEqHl+KRHJDZfKdPgYYzLYsW9raRRFV\r
+ zVlyN+4qeNntzX/kKlmJo7I8ePK1F+uzGQIzCq0FydBiQ/u5/z0hzx/bikB+1WjcTgh7\r
+ vydleqBDYhXETPVtnWKItHrgccxwe6CHYiGiz7VTmsTpHluvwziGxPxFsMDGcgLfNGe8\r
+ ucsg==\r
+X-Received: by 10.180.76.194 with SMTP id m2mr14438037wiw.4.1369059587204;\r
+ Mon, 20 May 2013 07:19:47 -0700 (PDT)\r
+Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
+ by mx.google.com with ESMTPSA id cw8sm15046855wib.7.2013.05.20.07.19.45\r
+ for <multiple recipients>\r
+ (version=TLSv1.1 cipher=RC4-SHA bits=128/128);\r
+ Mon, 20 May 2013 07:19:46 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: David Belohrad <david@belohrad.ch>, notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: how the date query works?\r
+In-Reply-To: <uaxli79u66o.fsf@beesknees.cern.ch>\r
+References: <uaxli79u66o.fsf@beesknees.cern.ch>\r
+User-Agent: Notmuch/0.15.2+86~g2be3ce0 (http://notmuchmail.org) Emacs/23.2.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Mon, 20 May 2013 16:19:41 +0200\r
+Message-ID: <87mwrpvima.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQlxfGnQytzwdh/t/k0FfAa+8pWXXkGjoYhzbpS/t4j8u0utfSca1x2fagKI5WB2YaYxWu3a\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: Mon, 20 May 2013 14:19:55 -0000\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