]> git.cworth.org Git - notmuch/commitdiff
test: add known broken test for insert with mbox as input
authorDavid Bremner <david@tethera.net>
Sat, 12 Feb 2022 02:10:07 +0000 (22:10 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 20 Feb 2022 00:15:10 +0000 (20:15 -0400)
It seems reasonable that notmuch should try to avoid delivering
messages in formats it cannot index.

test/T070-insert.sh

index ec170b30a42e18ce8fbc6866ee06bbbec7dc302b..a297fa73eb6c21a03bf64b6eae2b874ad5ebcd11 100755 (executable)
@@ -292,4 +292,10 @@ for code in OUT_OF_MEMORY XAPIAN_EXCEPTION ; do
     test_expect_code 0 "notmuch_with_shim shim-$code insert --keep < \"$gen_msg_filename\""
 done
 
+test_begin_subtest "insert converts mboxes on delivery"
+test_subtest_known_broken
+notmuch insert +unmboxed < "${TEST_DIRECTORY}"/corpora/indexing/mbox-attachment.eml
+output=$(notmuch count tag:unmboxed)
+test_expect_equal "${output}" 1
+
 test_done