From 72f80ca5f96de1e99bb77d4ad0d4e547748c8739 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 2 Nov 2012 18:40:26 +0100 Subject: [PATCH] Re: [PATCH v6 0/9] notmuch search date:since..until query support --- 28/5065b0ff2a337c043ee85ba3c77b3e8d039a18 | 107 ++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 28/5065b0ff2a337c043ee85ba3c77b3e8d039a18 diff --git a/28/5065b0ff2a337c043ee85ba3c77b3e8d039a18 b/28/5065b0ff2a337c043ee85ba3c77b3e8d039a18 new file mode 100644 index 000000000..2fad3dc11 --- /dev/null +++ b/28/5065b0ff2a337c043ee85ba3c77b3e8d039a18 @@ -0,0 +1,107 @@ +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 13C87431FAF + for ; Fri, 2 Nov 2012 10:40:37 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] 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 HMkiH4MvoviS for ; + Fri, 2 Nov 2012 10:40:36 -0700 (PDT) +Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) + by olra.theworths.org (Postfix) with ESMTP id B4106431FAE + for ; Fri, 2 Nov 2012 10:40:35 -0700 (PDT) +Received: from localhost (unknown [192.168.200.4]) + by max.feld.cvut.cz (Postfix) with ESMTP id 17C2B19F35DC; + Fri, 2 Nov 2012 18:40:34 +0100 (CET) +X-Virus-Scanned: IMAP AMAVIS +Received: from max.feld.cvut.cz ([192.168.200.1]) + by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, + port 10044) + with ESMTP id wGNDK6AEeFgi; Fri, 2 Nov 2012 18:40:32 +0100 (CET) +Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) + by max.feld.cvut.cz (Postfix) with ESMTP id E084419F2F4D; + Fri, 2 Nov 2012 18:40:30 +0100 (CET) +Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) + (Authenticated sender: sojkam1) + by imap.feld.cvut.cz (Postfix) with ESMTPSA id 5218F660904; + Fri, 2 Nov 2012 18:40:26 +0100 (CET) +Received: from wsh by steelpick.2x.cz with local (Exim 4.80) + (envelope-from ) + id 1TULEI-0006YK-62; Fri, 02 Nov 2012 18:40:26 +0100 +From: Michal Sojka +To: Jani Nikula , notmuch@notmuchmail.org +Subject: Re: [PATCH v6 0/9] notmuch search date:since..until query support +In-Reply-To: <87r4oejstw.fsf@zancas.localnet> +References: + <87r4oejstw.fsf@zancas.localnet> +User-Agent: Notmuch/0.14+78~ge62fcc5 (http://notmuchmail.org) Emacs/24.2.1 + (x86_64-pc-linux-gnu) +Date: Fri, 02 Nov 2012 18:40:26 +0100 +Message-ID: <87hap76gz9.fsf@steelpick.2x.cz> +MIME-Version: 1.0 +Content-Type: text/plain +Cc: Tomi Ollila +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: Fri, 02 Nov 2012 17:40:37 -0000 + +Hi all, + +On Wed, Oct 31 2012, David Bremner wrote: +> Jani Nikula writes: +> +>> Hi all, v6 of [1] with plenty of small changes addressing Austin's +>> review [2], [3], [4], and [5]. See my replies to Austin for what I've +>> agreed to change, and what I've chosen to ignore and why. +>> +> +> Pushed, (with patch 7 out of sequence, sorry about that). + +Just pulled current HEAD and tried + +$ notmuch search tag:notmuch and date:"this week" +thread:0000000000029c60 October 22 [1/21] Austin Clements| Jani Nikula, Tomi Ollila; [PATCH v5 2/9] parse-time-string: add a date/time parser to notmuch (inbox list notmuch unread) +thread:000000000002156c 2012-02-25 [1/8] Jani Nikula| Tomi Ollila, Mark Walters; [RFC PATCH 0/2] natural language date range search (inbox list notmuch notmuch::patch notmuch::wip unread watch) +thread:0000000000005191 2011-08-15 [2/8] Jani Nikula, Michal Sojka| Jason Woofenden, Tomi Ollila; [RFC PATCH 3/3] lib: add gnulib get_date() based date range search (list notmuch notmuch::patch notmuch::wip replied sent to-me watch) + +Can somebody explain me the result? This is definitely not the mail from +this week. + +Also the results below look strange to me. + +notmuch search tag:notmuch and date:'"this week"' +thread:000000000002a102 Tue. 21:32 [2/13] Jani Nikula| Austin Clements, Tomi Ollila, David Bremner; [PATCH v6 4/9] test: add smoke tests for the date/time parser module (inbox list notmuch unread) +thread:000000000002156c 2012-02-25 [3/8] Jani Nikula, Tomi Ollila| Mark Walters; [RFC PATCH 0/2] natural language date range search (inbox list notmuch notmuch::patch notmuch::wip unread watch) +thread:0000000000005191 2011-08-15 [2/8] Jani Nikula, Michal Sojka| Jason Woofenden, Tomi Ollila; [RFC PATCH 3/3] lib: add gnulib get_date() based date range search (list notmuch notmuch::patch notmuch::wip replied sent to-me watch) +thread:0000000000012725 2011-01-28 [1/5] Carl Worth| Thomas Schwinge, Michal Sojka; [PATCH] Clarify usage of `additional_headers' in test/test-lib.sh:generate_message. (list notmuch unread) +thread:0000000000012ef1 2010-04-09 [1/7] Carl Worth| Anthony Towns, Mark Anderson, Sebastian Spaeth, Michal Sojka, Sandra Snan; Initial attempt at a "merge window" for notmuch (list notmuch unread) +thread:000000000000e973 2010-01-27 [2/12] Keith Packard, Sebastian Spaeth; [notmuch] [PATCH] Make the date parser nicer (list notmuch unread) + +The following is also not very nice. I'm not sure whether notmuch can do +anything prevent this error. Double-quoting (like above) helps here. + +$ notmuch search tag:notmuch and date:"this week.." +A Xapian exception occurred performing query: Unknown range operation +Query string was: tag:notmuch and date:this week.. + +I'm sorry to not have more time for debugging these problems. + +Cheers, +-Michal -- 2.26.2