aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2024-05-20 08:58:57 -0300
committerDavid Bremner <david@tethera.net>2024-08-06 07:46:10 -0300
commitdf330eef9a6cbcd239589b13c54a451a0cf87e36 (patch)
tree5a616cfd83e8819b1b54d21c7a2a1b6e6e5ee1eb
parentbe27c7be1e3d724dbcbdc28ecab1a8fca9f8604b (diff)
test/emacs-tree: add known broken test for subject with CR/NL
The test is intentionally vague as it's hard to pin down the correct output before the code is fixed.
-rwxr-xr-xtest/T460-emacs-tree.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh
index 9388a8ed..69a9df74 100755
--- a/test/T460-emacs-tree.sh
+++ b/test/T460-emacs-tree.sh
@@ -222,6 +222,15 @@ test_emacs '(let ((notmuch-tree-outline-enabled t))
# folding all messages by height or depth should look the same
test_expect_equal_file $EXPECTED/notmuch-tree-tag-inbox OUTPUT
+test_begin_subtest "notmuch-tree for message with subject with embedded CRNL"
+test_subtest_known_broken
+add_message "[subject]=\"=?UTF-8?B?8J+Pi++4jw==?= A SALE to boost your =?UTF-8?Q?workout=0D=0A?=\" [body]=the-message-body"
+test_emacs "(notmuch-tree \"id:${gen_msg_id}\")
+ (notmuch-test-wait)
+ (test-output)"
+# one line of output, plus "End of search results."
+test_expect_equal "$(wc -l < OUTPUT)" 2
+
add_email_corpus duplicate
ID3=87r2ecrr6x.fsf@zephyr.silentflame.com