Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 57 / 686be5a0b66ab38226250d44d36d92e9c39113
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 8D11541ED7D\r
6         for <notmuch@notmuchmail.org>; Sun,  1 Apr 2012 08:24:32 -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 mwBjTP6k2eN8 for <notmuch@notmuchmail.org>;\r
16         Sun,  1 Apr 2012 08:24:30 -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 99816431FAF\r
19         for <notmuch@notmuchmail.org>; Sun,  1 Apr 2012 08:24:29 -0700 (PDT)\r
20 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd7ml3no-ssvc.prod.shaw.ca)\r
21         ([10.0.144.222])\r
22         by pd6mo1no-svcs.prod.shaw.ca with ESMTP; 01 Apr 2012 09:24:28 -0600\r
23 X-Cloudmark-SP-Filtered: true\r
24 X-Cloudmark-SP-Result: v=1.1 cv=aDUJ/pRHNXkohnfhaDKKve0FfU8uPxX8npdo6G126bI=\r
25         c=1 sm=1\r
26         a=FB91lwnDhUAA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
27         a=7343-z1_AAAA:8 a=A1X0JdhQAAAA:8 a=MqAnj5KanGRAbbhfqxsA:9\r
28         a=0c-eHkXYtrgA:10 a=Y6qChIQXU1wA:10 a=m3hT4bSK9pFHb6VA:21\r
29         a=lLLP8KWfmJL04ml9:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
30 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
31         by pd7ml3no-dmz.prod.shaw.ca with ESMTP; 01 Apr 2012 09:24:27 -0600\r
32 Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
33         id C42CB800422C; Sun,  1 Apr 2012 09:24:26 -0600 (MDT)\r
34 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [BUG/PATCH v4 1/4] test: Tests for reply from alternate addresses in\r
37         emacs\r
38 Date: Sun,  1 Apr 2012 09:24:20 -0600\r
39 Message-Id: <1333293863-14361-2-git-send-email-awg+notmuch@xvx.ca>\r
40 X-Mailer: git-send-email 1.7.5.4\r
41 In-Reply-To: <1333293863-14361-1-git-send-email-awg+notmuch@xvx.ca>\r
42 References: <1333240404-13076-1-git-send-email-awg+notmuch@xvx.ca>\r
43         <1333293863-14361-1-git-send-email-awg+notmuch@xvx.ca>\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Sun, 01 Apr 2012 15:24:32 -0000\r
57 \r
58 Since the recent reply changes were pushed, there has been a bug that\r
59 causes emacs to always reply from the primary address, even if the\r
60 JSON or default CLI reply output uses an alternate address.\r
61 \r
62 This adds two tests to the emacs test library based on the two "Reply\r
63 form..." tests in the reply test library. One is currently marked\r
64 broken.\r
65 ---\r
66  test/emacs |   44 ++++++++++++++++++++++++++++++++++++++++++++\r
67  1 files changed, 44 insertions(+), 0 deletions(-)\r
68 \r
69 diff --git a/test/emacs b/test/emacs\r
70 index 8b92d0a..576bc1f 100755\r
71 --- a/test/emacs\r
72 +++ b/test/emacs\r
73 @@ -285,6 +285,50 @@ Notmuch Test Suite <test_suite@notmuchmail.org> writes:\r
74  EOF\r
75  test_expect_equal_file OUTPUT EXPECTED\r
76  \r
77 +test_begin_subtest "Reply from alternate address within emacs"\r
78 +test_subtest_known_broken\r
79 +add_message '[from]="Sender <sender@example.com>"' \\r
80 +            [to]=test_suite_other@notmuchmail.org\r
81 +\r
82 +test_emacs "(notmuch-search \"id:\\\"${gen_msg_id}\\\"\")\r
83 +           (notmuch-test-wait)\r
84 +           (notmuch-search-reply-to-thread)\r
85 +           (test-output)"\r
86 +cat <<EOF >EXPECTED\r
87 +From: Notmuch Test Suite <test_suite_other@notmuchmail.org>\r
88 +To: Sender <sender@example.com>\r
89 +Subject: Re: ${test_subtest_name}\r
90 +In-Reply-To: <${gen_msg_id}>\r
91 +Fcc: ${MAIL_DIR}/sent\r
92 +--text follows this line--\r
93 +Sender <sender@example.com> writes:\r
94 +\r
95 +> This is just a test message (#${gen_msg_cnt})\r
96 +EOF\r
97 +test_expect_equal_file OUTPUT EXPECTED\r
98 +\r
99 +test_begin_subtest "Reply from address in named group list within emacs"\r
100 +add_message '[from]="Sender <sender@example.com>"' \\r
101 +            '[to]=group:test_suite@notmuchmail.org,someone@example.com\;' \\r
102 +             [cc]=test_suite_other@notmuchmail.org\r
103 +\r
104 +test_emacs "(notmuch-search \"id:\\\"${gen_msg_id}\\\"\")\r
105 +           (notmuch-test-wait)\r
106 +           (notmuch-search-reply-to-thread)\r
107 +           (test-output)"\r
108 +cat <<EOF >EXPECTED\r
109 +From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
110 +To: Sender <sender@example.com>, someone@example.com\r
111 +Subject: Re: ${test_subtest_name}\r
112 +In-Reply-To: <${gen_msg_id}>\r
113 +Fcc: ${MAIL_DIR}/sent\r
114 +--text follows this line--\r
115 +Sender <sender@example.com> writes:\r
116 +\r
117 +> This is just a test message (#${gen_msg_cnt})\r
118 +EOF\r
119 +test_expect_equal_file OUTPUT EXPECTED\r
120 +\r
121  test_begin_subtest "Reply within emacs to a multipart/mixed message"\r
122  test_emacs '(notmuch-show "id:20091118002059.067214ed@hikari")\r
123                 (notmuch-show-reply)\r
124 -- \r
125 1.7.5.4\r
126 \r