diff options
| author | David Bremner <david@tethera.net> | 2022-02-11 22:10:07 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-02-19 20:15:10 -0400 |
| commit | 4a380371e7f6d907823df66bee07fa569f379875 (patch) | |
| tree | 8c985eb70b9325070b39f18320a12f77542b7ecf | |
| parent | 190d8a77114993f7eede09c9346fbd3c8f16810e (diff) | |
test: add known broken test for insert with mbox as input
It seems reasonable that notmuch should try to avoid delivering
messages in formats it cannot index.
| -rwxr-xr-x | test/T070-insert.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/T070-insert.sh b/test/T070-insert.sh index ec170b30..a297fa73 100755 --- a/test/T070-insert.sh +++ b/test/T070-insert.sh @@ -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 |
