Re: Hi all
[notmuch-archives.git] / c7 / 4f9e9ff619e4c855c23404856ba552efc71ada
1 Return-Path: <aaronecay@gmail.com>\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 2732E431FD2\r
6         for <notmuch@notmuchmail.org>; Sat, 28 Jan 2012 22:07:25 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id UZzqhYE+SdwZ for <notmuch@notmuchmail.org>;\r
17         Sat, 28 Jan 2012 22:07:24 -0800 (PST)\r
18 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com\r
19         [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 6C2F1431FB6\r
22         for <notmuch@notmuchmail.org>; Sat, 28 Jan 2012 22:07:24 -0800 (PST)\r
23 Received: by qcpx40 with SMTP id x40so1996218qcp.26\r
24         for <notmuch@notmuchmail.org>; Sat, 28 Jan 2012 22:07:23 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;\r
27         bh=6JAetgRdu28Bs4g0+51Dt52mKoFu+kTv31w2mvf1tnw=;\r
28         b=b9P0O6gp7QZGz9KQ5V5xVAcKHpRbr4LXbMMR/mRbfrH1ugRkmRjLeln01t8hUWNUIC\r
29         8r2HdBbn6VPpTpTZ9422wpUs5shodNa8OLZSYZIp6nkSulqH6O+BRYMaZPKNH9Fpy7/4\r
30         8tELIeH0XKMcUimPC58CkyhhbDiJMGUOdCE4w=\r
31 Received: by 10.229.136.204 with SMTP id s12mr4417707qct.96.1327817243717;\r
32         Sat, 28 Jan 2012 22:07:23 -0800 (PST)\r
33 Received: from localhost.localdomain (c-68-80-94-73.hsd1.pa.comcast.net.\r
34         [68.80.94.73])\r
35         by mx.google.com with ESMTPS id dm7sm26381298qab.5.2012.01.28.22.07.21\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Sat, 28 Jan 2012 22:07:22 -0800 (PST)\r
38 From: Aaron Ecay <aaronecay@gmail.com>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 1/2] emacs: Add tests for quoting of MML tags in replies\r
41 Date: Sun, 29 Jan 2012 01:07:07 -0500\r
42 Message-Id: <1327817229-18124-1-git-send-email-aaronecay@gmail.com>\r
43 X-Mailer: git-send-email 1.7.9\r
44 In-Reply-To: <20120126191654.GF1940@mit.edu>\r
45 References: <20120126191654.GF1940@mit.edu>\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Sun, 29 Jan 2012 06:07:25 -0000\r
59 \r
60 The test is broken at this time; the next commit will introduce a fix.\r
61 ---\r
62 \r
63 Thanks for the reminder, Austin.  Things got hectic, and it took a\r
64 little bludgeoning to get the test suite to behave.  I *think* I got\r
65 it, although I am by no means confident.  Specifically, I am seeing\r
66 some unrelated(?) test failures in the emacs suite, so I'd appreciate\r
67 it if someone with a well-functioning test suite tried out these\r
68 patches before they are pushed, to be sure I didn't break anything.\r
69 \r
70 I tried to follow the "first patch introduces a failing test, second\r
71 patch fixes it" convention.\r
72 \r
73  test/emacs                           |   14 ++++++++++++++\r
74  test/emacs.expected-output/quote-mml |    9 +++++++++\r
75  2 files changed, 23 insertions(+), 0 deletions(-)\r
76  create mode 100644 test/emacs.expected-output/quote-mml\r
77 \r
78 diff --git a/test/emacs b/test/emacs\r
79 index 8ca4c8a..a57513a 100755\r
80 --- a/test/emacs\r
81 +++ b/test/emacs\r
82 @@ -273,6 +273,20 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w\r
83  EOF\r
84  test_expect_equal_file OUTPUT EXPECTED\r
85  \r
86 +test_begin_subtest "Quote MML tags on reply"\r
87 +test_subtest_known_broken\r
88 +add_message '[from]="1337 h4xor <test@test.com>"' \\r
89 +            '[to]="Unsuspecting rube <luser@securityhole.com>"' \\r
90 +            '[subject]="hackety hack hack"' \\r
91 +            '[body]="<#part type="application/octet-stream" filename="foo" disposition=attachment>\r
92 +<#/part>"' \\r
93 +            '[id]="test-mml-quoting@msg.id"'\r
94 +test_emacs "(notmuch-show \"id:test-mml-quoting@msg.id\")\r
95 +            (notmuch-show-reply-sender)\r
96 +            (test-output)"\r
97 +test_expect_equal_file OUTPUT "$EXPECTED/quote-mml"\r
98 +\r
99 +\r
100  test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"\r
101  # save as archive to test that Emacs does not re-compress .gz\r
102  test_emacs '(let ((standard-input "\"attachment1.gz\""))\r
103 diff --git a/test/emacs.expected-output/quote-mml b/test/emacs.expected-output/quote-mml\r
104 new file mode 100644\r
105 index 0000000..01bd2ca\r
106 --- /dev/null\r
107 +++ b/test/emacs.expected-output/quote-mml\r
108 @@ -0,0 +1,9 @@\r
109 +From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
110 +To: 1337 h4xor <test@test.com>\r
111 +Subject: Re: hackety hack hack\r
112 +In-Reply-To: <test-mml-quoting@msg.id>\r
113 +Fcc: /home/aecay/development/notmuch/test/tmp.emacs/mail/sent\r
114 +--text follows this line--\r
115 +On Fri, 05 Jan 2001 15:43:57 +0000, 1337 h4xor <test@test.com> wrote:\r
116 +> <#!part type=application/octet-stream filename=foo disposition=attachment>\r
117 +> <#!/part>\r
118 -- \r
119 1.7.9\r
120 \r