From: David Bremner <david@tethera.net>
To: Richard Stanton <richardhstanton@gmail.com>, notmuch@notmuchmail.org
Subject: [PATCH 3/4] test/emacs-tree: add known broken test for subject with CR/NL
Date: Mon, 20 May 2024 08:58:57 -0300 [thread overview]
Message-ID: <20240520115911.902082-3-david@tethera.net> (raw)
In-Reply-To: <20240520115911.902082-1-david@tethera.net>
The test is intentionally vague as it's hard to pin down the correct
output before the code is fixed.
---
test/T460-emacs-tree.sh | 9 +++++++++
1 file changed, 9 insertions(+)
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
--
2.43.0
next prev parent reply other threads:[~2024-05-20 12:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-16 15:47 Carriage returns in subject line cause problems in unthreaded and tree mode Richard Stanton
2024-05-18 10:07 ` Tomi Ollila
2024-08-06 11:36 ` David Bremner
2024-05-20 11:58 ` [PATCH 1/4] test: re-enable duplicate UI tests in T460-emacs-tree David Bremner
2024-05-20 11:58 ` [PATCH 2/4] test/emacs-show: add regression test for subjects with CR/NL David Bremner
2024-05-20 11:58 ` David Bremner [this message]
2024-05-20 11:58 ` [PATCH 4/4] emacs/tree: sanitize subjects when drawing tree David Bremner
2024-05-29 10:41 ` [PATCH 1/4] test: re-enable duplicate UI tests in T460-emacs-tree David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240520115911.902082-3-david@tethera.net \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
--cc=richardhstanton@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).