[PATCH] test: known broken test for top level .notmuch in split configs

Subject: [PATCH] test: known broken test for top level .notmuch in split configs

Date: Sun, 16 Jan 2022 11:25:10 -0400

To: notmuch@notmuchmail.org


From: David Bremner

In split configurations there is no special significance to a top
level directory called .notmuch in the mail root. Users should
therefore be able to have mail stored underneath it.

My only worry was residual .notmuch directories after people switch
from legacy layout to split, but I tested by copying .notmuch to
.foobar and running notmuch new. It cleverly deduced that none of the
xapian database files were mail files, so this seems fine to me.

 test/T055-path-config.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index 1df240dd..40009d09 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -316,6 +316,17 @@ db=Database(config=Database.CONFIG.SEARCH)
+	   test_expect_equal_file EXPECTED OUTPUT
+	   test_begin_subtest ".notmuch not ignored in split config ($config)"
+	   test_subtest_known_broken
+	   generate_message '[dir]=.notmuch/cur' '[subject]="Do not ignore, very important"'
+	   notmuch search subject:Do-not-ignore | notmuch_search_sanitize >> OUTPUT
+	   cat <<EOF > EXPECTED
+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

notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org