Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / bd / edba28bc9f887b5b3676f1c6b73891cb15b362
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 42071431FBD\r
6         for <notmuch@notmuchmail.org>; Sat, 21 Apr 2012 17:55:07 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \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 rn-FAxJI3ux7 for <notmuch@notmuchmail.org>;\r
16         Sat, 21 Apr 2012 17:54:56 -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 4E5C5431FB6\r
19         for <notmuch@notmuchmail.org>; Sat, 21 Apr 2012 17:54:56 -0700 (PDT)\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd6ml3no-ssvc.prod.shaw.ca)\r
21         ([10.0.144.222])\r
22         by pd6mo1no-svcs.prod.shaw.ca with ESMTP; 21 Apr 2012 18:54:55 -0600\r
23 X-Cloudmark-SP-Filtered: true\r
24 X-Cloudmark-SP-Result: v=1.1 cv=gFGh1ScE7ROJHT2jhivHYaSHya8441O0LZB7wkhlVyo=\r
25         c=1 sm=1\r
26         a=NoL1FBsgOlgA: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 pd6ml3no-dmz.prod.shaw.ca with ESMTP; 21 Apr 2012 18:54:55 -0600\r
33 Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
34         id D83278004801; Sat, 21 Apr 2012 18:54:54 -0600 (MDT)\r
35 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
36 To: notmuch@notmuchmail.org\r
37 Subject: [PATCH 1/2] test: Replying to an HTML-only message in emacs\r
38 Date: Sat, 21 Apr 2012 18:54:52 -0600\r
39 Message-Id: <1335056093-17621-2-git-send-email-awg+notmuch@xvx.ca>\r
40 X-Mailer: git-send-email 1.7.5.4\r
41 In-Reply-To: <1335056093-17621-1-git-send-email-awg+notmuch@xvx.ca>\r
42 References: <1335056093-17621-1-git-send-email-awg+notmuch@xvx.ca>\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\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: Sun, 22 Apr 2012 00:55:07 -0000\r
56 \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
60 \r
61 This test currently marked as broken.\r
62 ---\r
63  test/emacs |   27 +++++++++++++++++++++++++++\r
64  1 files changed, 27 insertions(+), 0 deletions(-)\r
65 \r
66 diff --git a/test/emacs b/test/emacs\r
67 index c7510e9..e648f80 100755\r
68 --- a/test/emacs\r
69 +++ b/test/emacs\r
70 @@ -444,6 +444,33 @@ Alex Botero-Lowry <alex.boterolowry@gmail.com> writes:\r
71  EOF\r
72  test_expect_equal_file OUTPUT EXPECTED\r
73  \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
81 +           (test-output))"\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
85 +To: \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
93 +\r
94 +> Hi,\r
95 +> This is an HTML test message.\r
96 +>\r
97 +> OK?\r
98 +EOF\r
99 +test_expect_equal_file OUTPUT EXPECTED\r
100 +\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
104 -- \r
105 1.7.5.4\r
106 \r