It seems that notmuchfs is ignoring any 'exclude_tags' setting in the
notmuch configuration. I have this set to exclude_tags=deleted;spam;
(the default suggested by notmuch setup). Messages with the deleted tag
should not appear in search results (except for explicit searches for
tag:deleted), and indeed this happens when we ask notmuch directly:
% notmuch search tag:test
thread:0000000000000001 15 mins. ago [1/1] Nick Bowler; test1 (test)
thread:0000000000000002 15 mins. ago [1/1] Nick Bowler; test2 (test)
% notmuch tag +deleted thread:0000000000000002
% notmuch search tag:test
thread:0000000000000001 19 mins. ago [1/1] Nick Bowler; test1 (test)
notmuch search tag:test or tag:deleted
thread:0000000000000001 20 mins. ago [1/1] Nick Bowler; test1 (test)
thread:0000000000000002 20 mins. ago [1/1] Nick Bowler; test2 (deleted test)
However, when I do a query in notmuchfs (mounted at /tmp/nm), I get all
messages anyway:
% mkdir /tmp/nm/tag:test
% find /tmp/nm/tag:test -type f -print -exec sed -n '/^X-Label/s/\s*$//p' {} \;
/tmp/nm/tag:test/cur/#scratch_space#testmail#a
X-Label: test
/tmp/nm/tag:test/cur/#scratch_space#testmail#b
X-Label: deleted,test
Expected behaviour is the message with the deleted tag should not be
included in the notmuchfs maildir, same as how it does not show up
in regular queries.
It seems that notmuchfs is ignoring any 'exclude_tags' setting in the notmuch configuration. I have this set to
exclude_tags=deleted;spam;
(the default suggested by notmuch setup). Messages with the deleted tag should not appear in search results (except for explicit searches for tag:deleted), and indeed this happens when we ask notmuch directly:However, when I do a query in notmuchfs (mounted at /tmp/nm), I get all messages anyway:
Expected behaviour is the message with the deleted tag should not be included in the notmuchfs maildir, same as how it does not show up in regular queries.