In [1] Rob observed that notmuch new ignored directories called
.notmuch everywhere in the tree, where they should only (and now, with
split configs, at most) be ignored at the top level. Add a test to
demonstrate the problem.

 test/ | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/test/ b/test/
index 7ea127d3..db13090b 100755
--- a/test/
+++ b/test/
@@ -351,6 +351,17 @@ test_expect_code 1 "NOTMUCH_NEW --debug 2>&1"
 notmuch config set new.tags $OLDCONFIG
+test_begin_subtest ".notmuch only ignored at top level"
+generate_message '[dir]=foo/bar/.notmuch/cur' '[subject]="Do not ignore, very 
+notmuch search subject:Do-not-ignore | notmuch_search_sanitize >> OUTPUT
+Added 1 new message to the database.
+thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Do not ignore, very 
important (inbox unread)
+test_expect_equal_file EXPECTED OUTPUT
 test_begin_subtest "RFC822 group names are indexed"
 generate_message [to]="undisclosed-recipients:"

notmuch mailing list --
To unsubscribe send an email to

Reply via email to