unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
To: notmuch@notmuchmail.org
Subject: [PATCH 1/2] test: Add broken test for showing forwarded messages
Date: Fri,  3 Feb 2012 17:32:32 -0700	[thread overview]
Message-ID: <1328315554-16085-2-git-send-email-awg+notmuch@xvx.ca> (raw)
In-Reply-To: <1328315554-16085-1-git-send-email-awg+notmuch@xvx.ca>

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@poster.com>
+To: Notmuch Test Suite <test_suite@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@notmuchmail.org> (2001-01-05) (inbox)
+Subject: FW: The problem with top-posting
+To: Notmuch Test Suite <test_suite@notmuchmail.org>
+Date: Fri, 05 Jan 2001 15:43:57 +0000
+
+-----Original Message-----
+From: Top Poster <top@poster.com>
+To: Notmuch Test Suite <test_suite@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@mail.gmail.com")
 	    (notmuch-show-toggle-message)
-- 
1.7.5.4

  reply	other threads:[~2012-02-04  0:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04  0:32 [PATCH 0/2] Bug and potential fix: forwarded messages Adam Wolfe Gordon
2012-02-04  0:32 ` Adam Wolfe Gordon [this message]
2012-02-04  0:32 ` [PATCH 2/2] emacs: Fix broken showing of " Adam Wolfe Gordon
2012-02-04  6:01 ` [PATCH 0/2] Bug and potential fix: " Adam Wolfe Gordon
2012-02-04  6:10   ` Dmitry Kurochkin
2012-02-04 16:51     ` Adam Wolfe Gordon

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=1328315554-16085-2-git-send-email-awg+notmuch@xvx.ca \
    --to=awg+notmuch@xvx.ca \
    --cc=notmuch@notmuchmail.org \
    /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).