From 4ad0f5e1fbe4564db3d1ab3dba48d6023197cd8d Mon Sep 17 00:00:00 2001 From: Matthew Lear Date: Fri, 27 Feb 2015 07:50:16 +0000 Subject: [PATCH] Re: Inspired but need help searching folder names containing spaces --- 09/dbcbbe54f7f6e6ec65b97e84c472010a71b965 | 89 +++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 09/dbcbbe54f7f6e6ec65b97e84c472010a71b965 diff --git a/09/dbcbbe54f7f6e6ec65b97e84c472010a71b965 b/09/dbcbbe54f7f6e6ec65b97e84c472010a71b965 new file mode 100644 index 000000000..112089265 --- /dev/null +++ b/09/dbcbbe54f7f6e6ec65b97e84c472010a71b965 @@ -0,0 +1,89 @@ +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 B98DB41ED95 + for ; Fri, 27 Feb 2015 00:03:24 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.739 +X-Spam-Level: * +X-Spam-Status: No, score=1.739 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438, MIME_QP_LONG_LINE=0.001, + 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 3B1lhIdT7emJ for ; + Fri, 27 Feb 2015 00:03:21 -0800 (PST) +X-Greylist: delayed 456 seconds by postgrey-1.32 at olra; + Fri, 27 Feb 2015 00:03:20 PST +Received: from avasout06.plus.net (avasout06.plus.net [212.159.14.18]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id C9FAD431FCB + for ; Fri, 27 Feb 2015 00:03:20 -0800 (PST) +Received: from [192.168.1.22] ([80.229.236.194]) by avasout06 with smtp + id xKqE1p0014CLJ5401KqFr7; Fri, 27 Feb 2015 07:50:18 +0000 +X-CM-Score: 0.00 +X-CNFS-Analysis: v=2.1 cv=IIyMC2fG c=1 sm=1 tr=0 + a=G4bc5lkgapKKm1P+Twxy3Q==:117 a=G4bc5lkgapKKm1P+Twxy3Q==:17 + a=0Bzu9jTXAAAA:8 + a=kj9zAlcOel0A:10 a=80hmnl3cAAAA:8 a=dFffnLBqAAAA:8 + a=R_kyWn8I58ESfnoXU0oA:9 a=CjuIK1q_8ugA:10 +References: <54E3BAE1.1030004@bubblegen.co.uk> + <87pp97sldj.fsf@maritornes.cs.unb.ca> + + <87zj88wjgy.fsf@nikula.org> +Mime-Version: 1.0 (1.0) +In-Reply-To: <87zj88wjgy.fsf@nikula.org> +Content-Type: text/plain; + charset=us-ascii +Content-Transfer-Encoding: quoted-printable +Message-Id: <79D823A8-925A-478E-9734-9702C311A4F8@bubblegen.co.uk> +X-Mailer: iPad Mail (11D257) +From: Matthew Lear +Subject: Re: Inspired but need help searching folder names containing spaces +Date: Fri, 27 Feb 2015 07:50:16 +0000 +To: Jani Nikula +Cc: "notmuch@notmuchmail.org" +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, 27 Feb 2015 08:03:24 -0000 + + +> On 20 Feb 2015, at 18:01, Jani Nikula wrote: +>=20 +>> On Fri, 20 Feb 2015, Matthew Lear wrote: +>> A couple of others things have surprised me, though. Using the date searc= +h +>> option, such as date:"today" or date:"yesterday", hasn't quite thrown up +>> what I expected. Searching with date:"today" shows up no results (which I= + +>> know is wrong) and searching with date:"yesterday" shows up a handful of +>> emails all from the same person, in different threads which all arrived o= +n +>> a day in May 2014... Got to be a bug there somewhere :-D +>=20 +> This is a known limitation in the date: prefix queries. You have to +> specify it as a range, for example date:today..today (from the beginning +> of today until the end of today). If the underlying Xapian search engine +> is not given a range expression (with the "..") it searches for the +> words "date today" without punctuation, matching whatever it matches, +> and notmuch does not even get an error for it. + +Thanks. Explains everything. Any thoughts on searching on 'to' only? I'm not= + sure if this is also related to what Xapian needs to be provided with. If n= +ot, and if only searching in the to, cc and bcc fields of the header is poss= +ible, maybe we could consider adopting and integrating case sensitive syntax= + in notmuch such as TO:me rather than to:me..? +-- Matt= -- 2.26.2