[PATCH 1/2] test: Add broken test for showing forwarded messages
Adam Wolfe Gordon
awg+notmuch at xvx.ca
Fri Feb 3 16:32:32 PST 2012
Messages are sometimes forwarded with no new text in them, such
that the entire message looks like a top-posted reply with no reply
text. Showing such a message in emacs results in no message body
or button being inserted, so the buffer is empty except for headers.
---
test/emacs | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/test/emacs b/test/emacs
index 8ca4c8a..b8b13a7 100755
--- a/test/emacs
+++ b/test/emacs
@@ -349,6 +349,39 @@ Thanks for the advice! I will be sure to put it to good use.
[ 9-line hidden original message. Click/Enter to show. ]" > EXPECTED
test_expect_equal_file OUTPUT EXPECTED
+test_begin_subtest "Non-hiding of forwarded message with no new text"
+test_subtest_known_broken
+add_message [id]=forwarded-top-post \
+ '[subject]="FW: The problem with top-posting"' \
+ '[body]="
+
+-----Original Message-----
+From: Top Poster <top at poster.com>
+To: Notmuch Test Suite <test_suite at notmuchmai.org>
+Sent: Fri, 05 Jan 2001 15:43:57 +0000
+Subject: FW: The problem with top-posting
+
+Q: Why is top-posting such a bad thing?
+A: Top-posting.
+Q: What is the most annoying thing in e-mail?"'
+test_emacs "(notmuch-show \"FW: The problem with top-posting\")
+ (test-visible-output)"
+echo "Notmuch Test Suite <test_suite at notmuchmail.org> (2001-01-05) (inbox)
+Subject: FW: The problem with top-posting
+To: Notmuch Test Suite <test_suite at notmuchmail.org>
+Date: Fri, 05 Jan 2001 15:43:57 +0000
+
+-----Original Message-----
+From: Top Poster <top at poster.com>
+To: Notmuch Test Suite <test_suite at notmuchmai.org>
+Sent: Fri, 05 Jan 2001 15:43:57 +0000
+Subject: FW: The problem with top-posting
+
+Q: Why is top-posting such a bad thing?
+A: Top-posting.
+Q: What is the most annoying thing in e-mail?" > EXPECTED
+test_expect_equal_file OUTPUT EXPECTED
+
test_begin_subtest "Hiding message in notmuch-show view"
test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae at mail.gmail.com")
(notmuch-show-toggle-message)
--
1.7.5.4
More information about the notmuch
mailing list