From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 286AE6DE0C4A for ; Fri, 11 May 2018 03:15:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HZrFH5RaCjV7 for ; Fri, 11 May 2018 03:15:46 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 050F56DE0C45 for ; Fri, 11 May 2018 03:15:45 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1fH55S-0002wN-N9; Fri, 11 May 2018 06:15:42 -0400 Received: (nullmailer pid 27891 invoked by uid 1000); Fri, 11 May 2018 10:15:41 -0000 From: David Bremner To: Daniel Kahn Gillmor , notmuch@notmuchmail.org Subject: Re: Thread subqueries In-Reply-To: <878t8qzino.fsf@fifthhorseman.net> References: <20180505160523.9749-1-david@tethera.net> <87fu33d5vk.fsf@tethera.net> <878t8qzino.fsf@fifthhorseman.net> Date: Fri, 11 May 2018 07:15:41 -0300 Message-ID: <87in7ubir6.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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, 11 May 2018 10:15:47 -0000 Daniel Kahn Gillmor writes: > 0 dkg@alice:~$ notmuch count 'thread:{date:1month..now tag:dkg}' > notmuch count: A Xapian exception occurred > A Xapian exception occurred parsing query: missing } in '{date:1month..now' > Query string was: thread:{date:1month..now tag:dkg} > 1 dkg@alice:~$ Pretty sure what you want here is $ notmuch count 'thread:"{date:1month..now tag:dkg}"' There is some related discussion in QUOTING in notmuch-search-terms(7), and the thread:{} examples there all double quoting so they still work if the terms are replaced by terms with spaces. d