From: Gregor Zattler <telegraph@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: notmuch: boolean operators and path search
Date: Tue, 31 Oct 2017 01:09:06 +0100 [thread overview]
Message-ID: <87efpkuqjh.fsf@len.workgroup> (raw)
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=false --format=text "is:spam AND NOT path:Mail/spam-old/**"|head
message{ id:454c8ccad910465b74ce3e5b2119b652@lime30.brechidna.com depth:0 match:1 excluded:0 filename:/home/grfz/Mail/spam-old/cur/1509344405.10878_1.len:2,S
header{
Luckstar <reply@lime30.brechidna.com> (Yest. 10:19) (_T spam)
Subject: Unbestrittener Bonus für grfz
From: Luckstar <reply@lime30.brechidna.com>
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=false --format=text "is:spam AND path:Mail/spam-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
--
-... --- .-. . -.. ..--.. ...-.-
next reply other threads:[~2017-10-31 0:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 0:09 Gregor Zattler [this message]
2017-10-31 19:07 ` notmuch: boolean operators and path search Tomas Nordin
2017-11-01 0:39 ` Gregor Zattler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87efpkuqjh.fsf@len.workgroup \
--to=telegraph@gmx.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.