]> git.notmuchmail.org Git - notmuch/commitdiff
test: known broken test for top level .notmuch in split configs
authorDavid Bremner <david@tethera.net>
Sun, 16 Jan 2022 15:25:10 +0000 (11:25 -0400)
committerDavid Bremner <david@tethera.net>
Tue, 5 Jul 2022 11:09:57 +0000 (08:09 -0300)
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.

test/T055-path-config.sh

index 4897c8142ac73ea47023744cafcfd966985f1a98..63dd90fdc1179adf57ced6c38951b47e6a19430c 100755 (executable)
@@ -336,6 +336,17 @@ db=Database(config=Database.CONFIG.SEARCH)
 m=db.find('20091117232137.GA7669@griffis1.net')
 to=m.header('To')
 print(to)
+EOF
+          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_NEW > OUTPUT
+          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)
 EOF
           test_expect_equal_file EXPECTED OUTPUT
           ;;