Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / f7 / 141b8e609cc1d911fdc3de9e393f33a696c403
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 954CA431FC4\r
6         for <notmuch@notmuchmail.org>; Sun,  6 May 2012 07:56:21 -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 tIRj2YZuSCtY for <notmuch@notmuchmail.org>;\r
16         Sun,  6 May 2012 07:56:20 -0700 (PDT)\r
17 Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10])\r
18         by olra.theworths.org (Postfix) with ESMTP id 1C0D4431FAE\r
19         for <notmuch@notmuchmail.org>; Sun,  6 May 2012 07:56:20 -0700 (PDT)\r
20 Received: from pd4ml1so-ssvc.prod.shaw.ca ([10.0.141.141])\r
21         by pd3mo1so-svcs.prod.shaw.ca with ESMTP; 06 May 2012 08:56:18 -0600\r
22 X-Cloudmark-SP-Filtered: true\r
23 X-Cloudmark-SP-Result: v=1.1 cv=zu4PKjlF+9DoPrG/TPTQ4CC8dREy1gI1uGhqrRhVwqE=\r
24         c=1 sm=1\r
25         a=TxcI2jV9fO4A:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
26         a=7343-z1_AAAA:8 a=lQhQFHXEo_1BE4efVEQA:9 a=0c-eHkXYtrgA:10\r
27         a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
28 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
29         by pd4ml1so-dmz.prod.shaw.ca with ESMTP; 06 May 2012 08:56:18 -0600\r
30 Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
31         id C711B8004215; Sun,  6 May 2012 08:56:17 -0600 (MDT)\r
32 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
33 To: notmuch@notmuchmail.org\r
34 Subject: [PATCH] test: Force reply to use html2text for consistency\r
35 Date: Sun,  6 May 2012 08:56:15 -0600\r
36 Message-Id: <1336316175-17852-1-git-send-email-awg+notmuch@xvx.ca>\r
37 X-Mailer: git-send-email 1.7.5.4\r
38 In-Reply-To:\r
39  <CAMoJFUv6WcFKZVobqLk8tbmZ2GiXHh-fMhhukChBtXVK3brSxQ@mail.gmail.com>\r
40 References:\r
41  <CAMoJFUv6WcFKZVobqLk8tbmZ2GiXHh-fMhhukChBtXVK3brSxQ@mail.gmail.com>\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\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: Sun, 06 May 2012 14:56:21 -0000\r
55 \r
56 The output of the HTML reply test in the emacs suite can vary\r
57 depending on which HTML renderers are installed on the machine running\r
58 the tests. The renderer that is always available is emacs's builtin\r
59 html2text function. In order to get consistency, force the test to use\r
60 html2text even if other renderers are available.\r
61 ---\r
62 \r
63 As discussed on IRC, here's a patch that forces the HTML reply test to use\r
64 html2text, and adjusts the output accordingly. This should fix the test\r
65 failure on the buildbot.\r
66 \r
67  test/emacs |    7 ++-----\r
68  1 files changed, 2 insertions(+), 5 deletions(-)\r
69 \r
70 diff --git a/test/emacs b/test/emacs\r
71 index a615b39..e9f954c 100755\r
72 --- a/test/emacs\r
73 +++ b/test/emacs\r
74 @@ -447,7 +447,7 @@ test_expect_equal_file OUTPUT EXPECTED\r
75  test_begin_subtest "Reply within emacs to an html-only message"\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 +test_emacs "(let ((message-hidden-headers '()) (mm-text-html-renderer 'html2text))\r
80             (notmuch-show \"id:${gen_msg_id}\")\r
81             (notmuch-show-reply)\r
82             (test-output))"\r
83 @@ -463,10 +463,7 @@ User-Agent: Notmuch/XXX Emacs/XXX\r
84  --text follows this line--\r
85  Notmuch Test Suite <test_suite@notmuchmail.org> writes:\r
86  \r
87 -> Hi,\r
88 -> This is an HTML test message.\r
89 ->\r
90 -> OK?\r
91 +> Hi,This is an HTML test message.OK?\r
92  EOF\r
93  test_expect_equal_file OUTPUT EXPECTED\r
94  \r
95 -- \r
96 1.7.5.4\r
97 \r