help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

notmuch: boolean operators and path search


From: Gregor Zattler
Subject: notmuch: boolean operators and path search
Date: Tue, 31 Oct 2017 01:09:06 +0100

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
-- 
 -... --- .-. . -.. ..--.. ...-.-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]