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 DC9CF431FAE
\r
6 for <notmuch@notmuchmail.org>; Sat, 5 May 2012 12:24:37 -0700 (PDT)
\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
\r
12 tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled
\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 mwrqfAjiDxW6 for <notmuch@notmuchmail.org>;
\r
16 Sat, 5 May 2012 12:24:37 -0700 (PDT)
\r
17 Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9])
\r
18 by olra.theworths.org (Postfix) with ESMTP id EF84A431FBC
\r
19 for <notmuch@notmuchmail.org>; Sat, 5 May 2012 12:24:36 -0700 (PDT)
\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd7ml3no-ssvc.prod.shaw.ca)
\r
22 by pd7mo1no-svcs.prod.shaw.ca with ESMTP; 05 May 2012 13:24:34 -0600
\r
23 X-Cloudmark-SP-Filtered: true
\r
24 X-Cloudmark-SP-Result: v=1.1 cv=aDUJ/pRHNXkohnfhaDKKve0FfU8uPxX8npdo6G126bI=
\r
26 a=XejJYtmazEQA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17
\r
27 a=pGLkceISAAAA:8 a=7343-z1_AAAA:8 a=XO_JPfpFyO7eHv6Wg-AA:9
\r
28 a=wByx9icT8cMI-syc5TcA:7 a=0BPXsuqt4rsA:10 a=MSl-tDqOz04A:10
\r
29 a=0c-eHkXYtrgA:10 a=ibHUYwHMjd1ke71a:21 a=QfoBV0eLwBxe4XEy:21
\r
30 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
\r
31 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])
\r
32 by pd7ml3no-dmz.prod.shaw.ca with ESMTP; 05 May 2012 13:24:34 -0600
\r
33 Received: by lagos.xvx.ca (Postfix, from userid 1000)
\r
34 id 01B358004807; Sat, 5 May 2012 13:24:33 -0600 (MDT)
\r
35 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>
\r
36 To: notmuch@notmuchmail.org
\r
37 Subject: [PATCH v2 1/2] test: Replying to an HTML-only message in emacs
\r
38 Date: Sat, 5 May 2012 13:24:28 -0600
\r
39 Message-Id: <1336245869-32699-2-git-send-email-awg+notmuch@xvx.ca>
\r
40 X-Mailer: git-send-email 1.7.5.4
\r
41 In-Reply-To: <1336245869-32699-1-git-send-email-awg+notmuch@xvx.ca>
\r
42 References: <1336245869-32699-1-git-send-email-awg+notmuch@xvx.ca>
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Sat, 05 May 2012 19:24:38 -0000
\r
57 With the latest reply infrastructure, we should be able to nicely
\r
58 quote HTML-only emails. But currently emacs quotes the raw HTML
\r
59 instead of parsing it first. This commit adds a test for this case.
\r
61 This test currently marked as broken.
\r
63 test/emacs | 27 +++++++++++++++++++++++++++
\r
64 1 files changed, 27 insertions(+), 0 deletions(-)
\r
66 diff --git a/test/emacs b/test/emacs
\r
67 index 38decd0..5f238d9 100755
\r
70 @@ -444,6 +444,33 @@ Alex Botero-Lowry <alex.boterolowry@gmail.com> writes:
\r
72 test_expect_equal_file OUTPUT EXPECTED
\r
74 +test_begin_subtest "Reply within emacs to an html-only message"
\r
75 +test_subtest_known_broken
\r
76 +add_message '[content-type]="text/html"' \
\r
77 + '[body]="Hi,<br />This is an <b>HTML</b> test message.<br /><br />OK?"'
\r
78 +test_emacs "(let ((message-hidden-headers '()))
\r
79 + (notmuch-show \"id:${gen_msg_id}\")
\r
80 + (notmuch-show-reply)
\r
82 +sed -i -e 's,^User-Agent: Notmuch/.* Emacs/.*,User-Agent: Notmuch/XXX Emacs/XXX,' OUTPUT
\r
83 +cat <<EOF >EXPECTED
\r
84 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
86 +Subject: Re: Reply within emacs to an html-only message
\r
87 +In-Reply-To: <${gen_msg_id}>
\r
88 +Fcc: ${MAIL_DIR}/sent
\r
89 +References: <${gen_msg_id}>
\r
90 +User-Agent: Notmuch/XXX Emacs/XXX
\r
91 +--text follows this line--
\r
92 +Notmuch Test Suite <test_suite@notmuchmail.org> writes:
\r
95 +> This is an HTML test message.
\r
99 +test_expect_equal_file OUTPUT EXPECTED
\r
101 test_begin_subtest "Quote MML tags in reply"
\r
102 message_id='test-emacs-mml-quoting@message.id'
\r
103 add_message [id]="$message_id" \
\r