aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Pieter Praet <pieter@praet.org>2012-01-23 05:22:34 +0100
committerGravatar David Bremner <bremner@debian.org>2012-01-23 19:21:18 -0400
commitba33a15ec3ab80b175cf54d2584aa8acd1a2dc6e (patch)
tree85bb31d0db34ed6fec7416131aba1aea6a042fd6 /test
parent6795c62a50815786fd168536371cf6b9ed817535 (diff)
config: only exclude messages if 'search.exclude_tags' is explicitly set
Currently, the 'search.exclude_tags' option is automatically set to "deleted;spam;" if it's missing from the config file. This violates the Principle of Least Surprise, so *only* set 'search.exclude_tags' to "deleted;spam;" if we didn't find a configuration file at all. This patch is actually Austin Clements' work: id:"20120117203211.GQ16740@mit.edu"
Diffstat (limited to 'test')
-rwxr-xr-xtest/search1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/search b/test/search
index 99d94bd2..414be356 100755
--- a/test/search
+++ b/test/search
@@ -149,7 +149,6 @@ test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; N
thread:XXX 2001-01-05 [1/2] Notmuch Test Suite; Not deleted reply (deleted inbox unread)"
test_begin_subtest "Don't exclude \"deleted\" messages from search if not configured"
-test_subtest_known_broken
notmuch config set search.exclude_tags
output=$(notmuch search subject:deleted | notmuch_search_sanitize)
test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Not deleted (inbox unread)