[PATCH 3/4] Add documentation for user.other_name
[notmuch-archives.git] / 68 / 6e218d6d1a44083c04bb5263c163adda47f812
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 DA6C4421191\r
6         for <notmuch@notmuchmail.org>; Sat, 31 Mar 2012 17:33: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 58i60Wcu6goR for <notmuch@notmuchmail.org>;\r
16         Sat, 31 Mar 2012 17:33:31 -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 7227C42117D\r
19         for <notmuch@notmuchmail.org>; Sat, 31 Mar 2012 17:33:29 -0700 (PDT)\r
20 Received: from pd2ml2so-ssvc.prod.shaw.ca ([10.0.141.134])\r
21         by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 31 Mar 2012 18:33:28 -0600\r
22 X-Cloudmark-SP-Filtered: true\r
23 X-Cloudmark-SP-Result: v=1.1 cv=FBhiVrZmCxhz+jlnxOWeJaR14+PwdUeacMZGNnSzbtQ=\r
24         c=1 sm=1\r
25         a=wK34it86WzcA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
26         a=7343-z1_AAAA:8 a=A1X0JdhQAAAA:8 a=96eys_Ue-UOLi4JevggA:9\r
27         a=0c-eHkXYtrgA:10 a=Y6qChIQXU1wA:10 a=m3hT4bSK9pFHb6VA:21\r
28         a=9hK9ZkgO4WfUdSWE:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
29 Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
30         by pd2ml2so-dmz.prod.shaw.ca with ESMTP; 31 Mar 2012 18:33:27 -0600\r
31 Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
32         id 0C3C18004208; Sat, 31 Mar 2012 18:33:26 -0600 (MDT)\r
33 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [BUG/PATCH v3 1/4] test: Tests for reply from alternate addresses in\r
36         emacs\r
37 Date: Sat, 31 Mar 2012 18:33:21 -0600\r
38 Message-Id: <1333240404-13076-2-git-send-email-awg+notmuch@xvx.ca>\r
39 X-Mailer: git-send-email 1.7.5.4\r
40 In-Reply-To: <1333240404-13076-1-git-send-email-awg+notmuch@xvx.ca>\r
41 References: <1333240404-13076-1-git-send-email-awg+notmuch@xvx.ca>\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, 01 Apr 2012 00:33:33 -0000\r
55 \r
56 Since the recent reply changes were pushed, there has been a bug that\r
57 causes emacs to always reply from the primary address, even if the\r
58 JSON or default CLI reply output uses an alternate address.\r
59 \r
60 This adds two tests to the emacs test library based on the two "Reply\r
61 form..." tests in the reply test library. One is currently marked\r
62 broken.\r
63 ---\r
64  test/emacs |   44 ++++++++++++++++++++++++++++++++++++++++++++\r
65  1 files changed, 44 insertions(+), 0 deletions(-)\r
66 \r
67 diff --git a/test/emacs b/test/emacs\r
68 index 8a28705..3402efb 100755\r
69 --- a/test/emacs\r
70 +++ b/test/emacs\r
71 @@ -274,6 +274,50 @@ Notmuch Test Suite <test_suite@notmuchmail.org> writes:\r
72  EOF\r
73  test_expect_equal_file OUTPUT EXPECTED\r
74  \r
75 +test_begin_subtest "Reply from alternate address within emacs"\r
76 +test_subtest_known_broken\r
77 +add_message '[from]="Sender <sender@example.com>"' \\r
78 +            [to]=test_suite_other@notmuchmail.org\r
79 +\r
80 +test_emacs "(notmuch-search \"id:\\\"${gen_msg_id}\\\"\")\r
81 +           (notmuch-test-wait)\r
82 +           (notmuch-search-reply-to-thread)\r
83 +           (test-output)"\r
84 +cat <<EOF >EXPECTED\r
85 +From: Notmuch Test Suite <test_suite_other@notmuchmail.org>\r
86 +To: Sender <sender@example.com>\r
87 +Subject: Re: ${test_subtest_name}\r
88 +In-Reply-To: <${gen_msg_id}>\r
89 +Fcc: ${MAIL_DIR}/sent\r
90 +--text follows this line--\r
91 +Sender <sender@example.com> writes:\r
92 +\r
93 +> This is just a test message (#${gen_msg_cnt})\r
94 +EOF\r
95 +test_expect_equal_file OUTPUT EXPECTED\r
96 +\r
97 +test_begin_subtest "Reply from address in named group list within emacs"\r
98 +add_message '[from]="Sender <sender@example.com>"' \\r
99 +            '[to]=group:test_suite@notmuchmail.org,someone@example.com\;' \\r
100 +             [cc]=test_suite_other@notmuchmail.org\r
101 +\r
102 +test_emacs "(notmuch-search \"id:\\\"${gen_msg_id}\\\"\")\r
103 +           (notmuch-test-wait)\r
104 +           (notmuch-search-reply-to-thread)\r
105 +           (test-output)"\r
106 +cat <<EOF >EXPECTED\r
107 +From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
108 +To: Sender <sender@example.com>, someone@example.com\r
109 +Subject: Re: ${test_subtest_name}\r
110 +In-Reply-To: <${gen_msg_id}>\r
111 +Fcc: ${MAIL_DIR}/sent\r
112 +--text follows this line--\r
113 +Sender <sender@example.com> writes:\r
114 +\r
115 +> This is just a test message (#${gen_msg_cnt})\r
116 +EOF\r
117 +test_expect_equal_file OUTPUT EXPECTED\r
118 +\r
119  test_begin_subtest "Reply within emacs to a multipart/mixed message"\r
120  test_emacs '(notmuch-show "id:20091118002059.067214ed@hikari")\r
121                 (notmuch-show-reply)\r
122 -- \r
123 1.7.5.4\r
124 \r