]> git.cworth.org Git - notmuch/blobdiff - test/T670-duplicate-mid.sh
lib: enforce that n_message_reindex takes headers from first file
[notmuch] / test / T670-duplicate-mid.sh
index d2f894327c7f50da947ac3f7b742a58285655b1f..ce010cf739c404989da48684a0a25ca00b53d830 100755 (executable)
@@ -40,6 +40,13 @@ notmuch reindex '*'
 notmuch search --output=files "sekrit" | notmuch_dir_sanitize > OUTPUT
 test_expect_equal_file EXPECTED OUTPUT
 
+test_begin_subtest 'reindex choses subject from first filename'
+cat <<EOF > EXPECTED
+thread:XXX   2001-01-05 [1/1(3)] Notmuch Test Suite; message 0 (inbox unread)
+EOF
+notmuch search id:duplicate | notmuch_search_sanitize > OUTPUT
+test_expect_equal_file EXPECTED OUTPUT
+
 rm ${MAIL_DIR}/copy0
 test_begin_subtest 'Deleted first duplicate file does not stop notmuch show from working'
 output=$(notmuch show --body=false --format=json id:duplicate |