Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8A1F9431FBF for ; Fri, 3 Feb 2012 16:32:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e3njrTEuHpzC for ; Fri, 3 Feb 2012 16:32:49 -0800 (PST) Received: from smtp-out-04.shaw.ca (smtp-out-04.shaw.ca [64.59.134.12]) by olra.theworths.org (Postfix) with ESMTP id C39DA431FC7 for ; Fri, 3 Feb 2012 16:32:47 -0800 (PST) Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd5ml2no-ssvc.prod.shaw.ca) ([10.0.144.222]) by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 03 Feb 2012 17:32:46 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=m05oFQ/DU99dGqsFIml08suKTIzCBvSA/J37eL+THWw= c=1 sm=1 a=O8KtcTNBeAEA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17 a=OisoMLfxAAAA:8 a=GzGxOs6gAAAA:8 a=7343-z1_AAAA:8 a=pGLkceISAAAA:8 a=G82suNoZhXt8kMG2sKYA:9 a=VI19NqTFTB2UPUXuo_MA:7 a=2ke3qTA2c_8A:10 a=q2Bpxrkjl4QA:10 a=0c-eHkXYtrgA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56]) by pd5ml2no-dmz.prod.shaw.ca with ESMTP; 03 Feb 2012 17:32:38 -0700 Received: by lagos.xvx.ca (Postfix, from userid 1000) id 00CE2800C338; Fri, 3 Feb 2012 17:32:37 -0700 (MST) From: Adam Wolfe Gordon 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 Message-Id: <1328315554-16085-2-git-send-email-awg+notmuch@xvx.ca> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1328315554-16085-1-git-send-email-awg+notmuch@xvx.ca> References: <1328315554-16085-1-git-send-email-awg+notmuch@xvx.ca> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 00:32:50 -0000 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 +To: Notmuch Test Suite +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 (2001-01-05) (inbox) +Subject: FW: The problem with top-posting +To: Notmuch Test Suite +Date: Fri, 05 Jan 2001 15:43:57 +0000 + +-----Original Message----- +From: Top Poster +To: Notmuch Test Suite +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