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 8455C6DE0A77 for ; Sat, 12 May 2018 06:24:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.474 X-Spam-Level: X-Spam-Status: No, score=0.474 tagged_above=-999 required=5 tests=[AWL=-0.178, SPF_NEUTRAL=0.652] 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 o-ktxVpxJzf6 for ; Sat, 12 May 2018 06:24:43 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 9EE6E6DE025F for ; Sat, 12 May 2018 06:24:42 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id A3831100033; Sat, 12 May 2018 16:24:29 +0300 (EEST) From: Tomi Ollila To: Daniel Kahn Gillmor , David Bremner , notmuch@notmuchmail.org Subject: Re: Thread subqueries In-Reply-To: <87603uyzay.fsf@fifthhorseman.net> References: <20180505160523.9749-1-david@tethera.net> <87fu33d5vk.fsf@tethera.net> <878t8qzino.fsf@fifthhorseman.net> <87in7ubir6.fsf@tethera.net> <87603uyzay.fsf@fifthhorseman.net> User-Agent: Notmuch/0.26.1+22~g888240d (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ 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: Sat, 12 May 2018 13:24:45 -0000 On Fri, May 11 2018, Daniel Kahn Gillmor wrote: > On Fri 2018-05-11 07:15:41 -0300, David Bremner wrote: >> 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}"' question: how does these differ (processing-wise): $ notmuch count 'thread:"date:1month..now tag:dkg"' $ notmuch count 'thread:{date:1month..now tag:dkg}' $ notmuch count 'thread:"{date:1month..now tag:dkg}"' understanding the reasons behind these might help to use these in desired ways (or we could just say use "{...}" to get this to work). Tomi > Thanks, yes, that's it. I still find the quoting/assembling rules for > notmuch queries non-intuitive, but maybe one day i'll wrap my head > around them some day. I certainly don't have any specific suggestions > for improvement. > > This is a really useful feature, much appreciated! > > --dkg