From: Jani Nikula Date: Fri, 20 Feb 2015 18:01:17 +0000 (+0100) Subject: Re: Inspired but need help searching folder names containing spaces X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f400c899565a59829f7ca5d8c619575c4057fe47;p=notmuch-archives.git Re: Inspired but need help searching folder names containing spaces --- diff --git a/42/7e82fc19e744dba086d7e5ed6b03fa46dd3367 b/42/7e82fc19e744dba086d7e5ed6b03fa46dd3367 new file mode 100644 index 000000000..02ea9a840 --- /dev/null +++ b/42/7e82fc19e744dba086d7e5ed6b03fa46dd3367 @@ -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 8CF00429E21 + for ; Fri, 20 Feb 2015 10:11:25 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.738 +X-Spam-Level: * +X-Spam-Status: No, score=1.738 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438, 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 nFtGeD3k5W8j for ; + Fri, 20 Feb 2015 10:11:22 -0800 (PST) +Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com + [209.85.212.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E4910431FD6 + for ; Fri, 20 Feb 2015 10:11:21 -0800 (PST) +Received: by mail-wi0-f180.google.com with SMTP id h11so4630795wiw.1 + for ; Fri, 20 Feb 2015 10:00:42 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:in-reply-to:references + :user-agent:date:message-id:mime-version:content-type; + bh=/OMOEC+PfF/C8yRAz4mJGPDT7oOLkgXKAaZ71cnCem0=; + b=XSVuWRzblP9JC/V1pdLcAD6ocmQC4aT8pIflfD8sQQRrMfHmO6z2Whb05b8EErSgje + MRvVdlZmSnAdOuk/9sRyoolUFB6bsjfEAyGYc6lkOSeV4NDDT6lmVyGv3HlYNsxjz6Nu + 6S3EuU1C0sYWA8MHx7eO1kJ7YKjgh/+ajd8OJliTlEq+0bxVEGLFhr2MMrHSv3HSFkLB + vCVCKSKA+7BXIwTb8AN6GRPHkNFauklITfbgweFkrbqtGb4S0mA1myJEVC8K0CcUX4DR + 57wLf6VtYbNKHxabpi7KrNfbBT0a/7tnF969HnCyv/aljA1L2HWoeH36gFON6+pJ37o0 + mVnA== +X-Gm-Message-State: + ALoCoQk4mwFKDRLVK/kk+vMnSmW5c46mGVIxFDTQyA3KVKgvZPEtjXpLcgiDh5svqD+fywsiYQcI +X-Received: by 10.180.221.73 with SMTP id qc9mr183871wic.8.1424455241004; + Fri, 20 Feb 2015 10:00:41 -0800 (PST) +Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3]) + by mx.google.com with ESMTPSA id v16sm3394492wib.5.2015.02.20.10.00.39 + (version=TLSv1.1 cipher=RC4-SHA bits=128/128); + Fri, 20 Feb 2015 10:00:40 -0800 (PST) +From: Jani Nikula +To: matt@bubblegen.co.uk, David Bremner +Subject: Re: Inspired but need help searching folder names containing spaces +In-Reply-To: +References: <54E3BAE1.1030004@bubblegen.co.uk> + <87pp97sldj.fsf@maritornes.cs.unb.ca> + +User-Agent: Notmuch/0.19+48~gb74ed1c (http://notmuchmail.org) Emacs/23.2.1 + (x86_64-pc-linux-gnu) +Date: Fri, 20 Feb 2015 19:01:17 +0100 +Message-ID: <87zj88wjgy.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +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, 20 Feb 2015 18:11:25 -0000 + +On Fri, 20 Feb 2015, Matthew Lear wrote: +> A couple of others things have surprised me, though. Using the date search +> 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 on +> a day in May 2014... Got to be a bug there somewhere :-D + +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. + +HTH, +Jani. +