From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.help Subject: notmuch: boolean operators and path search Date: Tue, 31 Oct 2017 01:09:06 +0100 Message-ID: <87efpkuqjh.fsf@len.workgroup> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509408594 7422 195.159.176.226 (31 Oct 2017 00:09:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2017 00:09:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 31 01:09:50 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9K7o-0001Lk-P7 for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Oct 2017 01:09:48 +0100 Original-Received: from localhost ([::1]:43134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9K7w-0006lK-1n for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Oct 2017 20:09:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9K7W-0006lC-8B for help-gnu-emacs@gnu.org; Mon, 30 Oct 2017 20:09:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9K7R-0005TJ-3d for help-gnu-emacs@gnu.org; Mon, 30 Oct 2017 20:09:30 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:58290) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9K7Q-0005RU-Pq for help-gnu-emacs@gnu.org; Mon, 30 Oct 2017 20:09:25 -0400 Original-Received: from len.workgroup ([84.189.134.252]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Ma1pn-1ds3Jv0YeN-00LpWs for ; Tue, 31 Oct 2017 01:09:20 +0100 Mail-Followup-To: help-gnu-emacs@gnu.org X-Provags-ID: V03:K0:rLF5lM2bnOpupSIvwaGkRUoLMcJErvI/eyp2+bsWzX4JxBxnDvO Tcfn9/wL5tiY0LGmcdPpohWzZoTDj1tUG9+Y2SwC7GEcvKZFAVinIT4BKIU2jAUpcuCiB6/ E5b8wZ7kYM0Dupt0xM42OIYwEMrLgjRa6Z5GTKgFyVeKLg4rDyja63PV64Gts4KTcdz481l lRRQvhjB/c9DerptyS7pw== X-UI-Out-Filterresults: notjunk:1;V01:K0:hqeZ6Jgmwdo=:2k4CbaorYQ0OL/vZ6aRP7M ae2D+XNKTFh0yC3T8YKhaRXJRVaLoftpz6c4XUpdIZQQ7GgQTB8S+1A7lVtbQvvhj2NMhJPii jGvuzrItoobBp88P2GwTX5orDH4lNsnCp7LYZuH4hTX2HijNS07lu4pWlH9WgVEkeadKIEfUn eoyrpZFyJgBtA2ODP1LJmUfrwElTuefOpR9iy7Z2S9tg/+9SIqgkY/QWalq6LIWTy3JdxFNt7 5CwpCgagiGifltMdqGoeNlOaNKp3ZCrjU1HlR2n8xIi14th1Ohl+2BQOyaLVMaOuJgEDoGTaf fu0hXLnNhXVSfdUAtpHmMJ6A6d7xjd0dOJP94nh7rcYL3LjWbFPEdEl5QYj8fiLCCy0khy4iN E1jyMD5+wUeolMFmSuBMn++Pwjz5y+1bcqNFEWWlOdz7916zmzE3twOlDikyV4P1sF/CqvW5x wV4ZQacmJh6sYo3GmNTOcpCmSdXPzuGiy1lLhFfBPV40MsXq6lB9h75XFdqXmQFcjSmOmC47X dAPQuL6I1FRNFmHxzbct8Yy4Jt+p6PbZ8EmJn21iUYozbhTTcwMIqP/LXMEdb/7Wb1636XAOx 9XrFxsJLCmgMmI5jsh7RiShYYWAsJv9hdmsksci8qaItfm9fcY3YzvDIk0HuVrPl8NDDLAA2V 94lK0MnrjCsFw9H+RrRNW3TN4cal0c0bY+d0cgLaYj3QP/C6oMXFPz3cbeOhRFkcBxDETLVgz enQ1uPv3rswf73KZzzAq2w7dmA1oWLy2CqmQS6TNLtmtCzXYVbVD1XHb25G3alRgtgvK333G X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114704 Archived-At: Hi there, can anyone please enlighten me, why the search term "is:spam AND NOT path:Mail/spam-old/**" shows emails which are tagged spam and are in spam-old?: $ notmuch show --exclude=3Dfalse --format=3Dtext "is:spam AND NOT path:Mail= /spam-old/**"|head message{ id:454c8ccad910465b74ce3e5b2119b652@lime30.brechidna.com depth:0 m= atch:1 excluded:0 filename:/home/grfz/Mail/spam-old/cur/1509344405.10878_1.= len:2,S header{ Luckstar (Yest. 10:19) (_T spam) Subject: Unbestrittener Bonus f=C3=BCr grfz From: Luckstar To: grfz@gmx.de Date: Mon, 30 Oct 2017 02:19:53 -0700 header} body{ part{ ID: 1, Content-type: text/html Note the file name and the spam tag in line 3 of the output. This: $ notmuch show --exclude=3Dfalse --format=3Dtext "is:spam AND path:Mail/spa= m-old/**" shows nothing. This is consistent with the results of notmuch count: $ notmuch count "is:spam AND path:Mail/spam-old/**" 0 $ notmuch count "is:spam AND NOT path:Mail/spam-old/**" 10331 But I would expect the results to be the other way around since there actually are no emails tagged spam in folders other than spam-old. This is with: $ notmuch --version notmuch 0.25.1+161~g1b91884 Ciao; Gregor --=20 -... --- .-. . -.. ..--.. ...-.-