1 Return-Path: <awg@lagos.xvx.ca>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 8A1F9431FBF
\r
6 for <notmuch@notmuchmail.org>; Fri, 3 Feb 2012 16:32:50 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id e3njrTEuHpzC for <notmuch@notmuchmail.org>;
\r
16 Fri, 3 Feb 2012 16:32:49 -0800 (PST)
\r
17 Received: from smtp-out-04.shaw.ca (smtp-out-04.shaw.ca [64.59.134.12])
\r
18 by olra.theworths.org (Postfix) with ESMTP id C39DA431FC7
\r
19 for <notmuch@notmuchmail.org>; Fri, 3 Feb 2012 16:32:47 -0800 (PST)
\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd5ml2no-ssvc.prod.shaw.ca)
\r
22 by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 03 Feb 2012 17:32:46 -0700
\r
23 X-Cloudmark-SP-Filtered: true
\r
24 X-Cloudmark-SP-Result: v=1.1 cv=m05oFQ/DU99dGqsFIml08suKTIzCBvSA/J37eL+THWw=
\r
26 a=O8KtcTNBeAEA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17
\r
27 a=OisoMLfxAAAA:8 a=GzGxOs6gAAAA:8 a=7343-z1_AAAA:8 a=pGLkceISAAAA:8
\r
28 a=G82suNoZhXt8kMG2sKYA:9 a=VI19NqTFTB2UPUXuo_MA:7 a=2ke3qTA2c_8A:10
\r
29 a=q2Bpxrkjl4QA:10 a=0c-eHkXYtrgA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
\r
30 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])
\r
31 by pd5ml2no-dmz.prod.shaw.ca with ESMTP; 03 Feb 2012 17:32:38 -0700
\r
32 Received: by lagos.xvx.ca (Postfix, from userid 1000)
\r
33 id 00CE2800C338; Fri, 3 Feb 2012 17:32:37 -0700 (MST)
\r
34 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH 1/2] test: Add broken test for showing forwarded messages
\r
37 Date: Fri, 3 Feb 2012 17:32:32 -0700
\r
38 Message-Id: <1328315554-16085-2-git-send-email-awg+notmuch@xvx.ca>
\r
39 X-Mailer: git-send-email 1.7.5.4
\r
40 In-Reply-To: <1328315554-16085-1-git-send-email-awg+notmuch@xvx.ca>
\r
41 References: <1328315554-16085-1-git-send-email-awg+notmuch@xvx.ca>
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Sat, 04 Feb 2012 00:32:50 -0000
\r
56 Messages are sometimes forwarded with no new text in them, such
\r
57 that the entire message looks like a top-posted reply with no reply
\r
58 text. Showing such a message in emacs results in no message body
\r
59 or button being inserted, so the buffer is empty except for headers.
\r
61 test/emacs | 33 +++++++++++++++++++++++++++++++++
\r
62 1 files changed, 33 insertions(+), 0 deletions(-)
\r
64 diff --git a/test/emacs b/test/emacs
\r
65 index 8ca4c8a..b8b13a7 100755
\r
68 @@ -349,6 +349,39 @@ Thanks for the advice! I will be sure to put it to good use.
\r
69 [ 9-line hidden original message. Click/Enter to show. ]" > EXPECTED
\r
70 test_expect_equal_file OUTPUT EXPECTED
\r
72 +test_begin_subtest "Non-hiding of forwarded message with no new text"
\r
73 +test_subtest_known_broken
\r
74 +add_message [id]=forwarded-top-post \
\r
75 + '[subject]="FW: The problem with top-posting"' \
\r
78 +-----Original Message-----
\r
79 +From: Top Poster <top@poster.com>
\r
80 +To: Notmuch Test Suite <test_suite@notmuchmai.org>
\r
81 +Sent: Fri, 05 Jan 2001 15:43:57 +0000
\r
82 +Subject: FW: The problem with top-posting
\r
84 +Q: Why is top-posting such a bad thing?
\r
86 +Q: What is the most annoying thing in e-mail?"'
\r
87 +test_emacs "(notmuch-show \"FW: The problem with top-posting\")
\r
88 + (test-visible-output)"
\r
89 +echo "Notmuch Test Suite <test_suite@notmuchmail.org> (2001-01-05) (inbox)
\r
90 +Subject: FW: The problem with top-posting
\r
91 +To: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
92 +Date: Fri, 05 Jan 2001 15:43:57 +0000
\r
94 +-----Original Message-----
\r
95 +From: Top Poster <top@poster.com>
\r
96 +To: Notmuch Test Suite <test_suite@notmuchmai.org>
\r
97 +Sent: Fri, 05 Jan 2001 15:43:57 +0000
\r
98 +Subject: FW: The problem with top-posting
\r
100 +Q: Why is top-posting such a bad thing?
\r
102 +Q: What is the most annoying thing in e-mail?" > EXPECTED
\r
103 +test_expect_equal_file OUTPUT EXPECTED
\r
105 test_begin_subtest "Hiding message in notmuch-show view"
\r
106 test_emacs '(notmuch-show "id:f35dbb950911171438k5df6eb56k77b6c0944e2e79ae@mail.gmail.com")
\r
107 (notmuch-show-toggle-message)
\r