[PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 96 / 344c03cc1baff92f57b32f573e062e0355c3ec
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 B3FAC431FAE\r
6         for <notmuch@notmuchmail.org>; Wed, 28 Mar 2012 06:34:00 -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 WgEL31Qbx+tR for <notmuch@notmuchmail.org>;\r
16         Wed, 28 Mar 2012 06:34:00 -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 968AF431FB6\r
19         for <notmuch@notmuchmail.org>; Wed, 28 Mar 2012 06:33:59 -0700 (PDT)\r
20 Received: from pd3ml1so-ssvc.prod.shaw.ca ([10.0.141.140])\r
21         by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 28 Mar 2012 07:33:58 -0600\r
22 X-Cloudmark-SP-Filtered: true\r
23 X-Cloudmark-SP-Result: v=1.1 cv=MPNiKFfsidoaPqBs0kThsodqbsbgvPHp5CGEg9DOvhI=\r
24         c=1 sm=1\r
25         a=K0BHEOyCVIAA: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 pd3ml1so-dmz.prod.shaw.ca with ESMTP; 28 Mar 2012 07:33:58 -0600\r
31 Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
32         id CBD748004208; Wed, 28 Mar 2012 07:33:57 -0600 (MDT)\r
33 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [BUG/PATCH v2 1/2] test: Tests for reply from alternate addresses in\r
36         emacs\r
37 Date: Wed, 28 Mar 2012 07:33:54 -0600\r
38 Message-Id: <1332941635-21019-2-git-send-email-awg+notmuch@xvx.ca>\r
39 X-Mailer: git-send-email 1.7.5.4\r
40 In-Reply-To: <1332941635-21019-1-git-send-email-awg+notmuch@xvx.ca>\r
41 References: <1332635232-15269-1-git-send-email-awg+notmuch@xvx.ca>\r
42         <1332941635-21019-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: Wed, 28 Mar 2012 13:34:00 -0000\r
56 \r
57 Since the recent reply changes were pushed, there has been a bug that\r
58 causes emacs to always reply from the primary address, even if the\r
59 JSON or default CLI reply output uses an alternate address.\r
60 \r
61 This adds two tests to the emacs test library based on the two "Reply\r
62 form..." tests in the reply test library. One is currently marked\r
63 broken.\r
64 ---\r
65  test/emacs |   44 ++++++++++++++++++++++++++++++++++++++++++++\r
66  1 files changed, 44 insertions(+), 0 deletions(-)\r
67 \r
68 diff --git a/test/emacs b/test/emacs\r
69 index 8a28705..3402efb 100755\r
70 --- a/test/emacs\r
71 +++ b/test/emacs\r
72 @@ -274,6 +274,50 @@ Notmuch Test Suite <test_suite@notmuchmail.org> writes:\r
73  EOF\r
74  test_expect_equal_file OUTPUT EXPECTED\r
75  \r
76 +test_begin_subtest "Reply from alternate address within emacs"\r
77 +test_subtest_known_broken\r
78 +add_message '[from]="Sender <sender@example.com>"' \\r
79 +            [to]=test_suite_other@notmuchmail.org\r
80 +\r
81 +test_emacs "(notmuch-search \"id:\\\"${gen_msg_id}\\\"\")\r
82 +           (notmuch-test-wait)\r
83 +           (notmuch-search-reply-to-thread)\r
84 +           (test-output)"\r
85 +cat <<EOF >EXPECTED\r
86 +From: Notmuch Test Suite <test_suite_other@notmuchmail.org>\r
87 +To: Sender <sender@example.com>\r
88 +Subject: Re: ${test_subtest_name}\r
89 +In-Reply-To: <${gen_msg_id}>\r
90 +Fcc: ${MAIL_DIR}/sent\r
91 +--text follows this line--\r
92 +Sender <sender@example.com> writes:\r
93 +\r
94 +> This is just a test message (#${gen_msg_cnt})\r
95 +EOF\r
96 +test_expect_equal_file OUTPUT EXPECTED\r
97 +\r
98 +test_begin_subtest "Reply from address in named group list within emacs"\r
99 +add_message '[from]="Sender <sender@example.com>"' \\r
100 +            '[to]=group:test_suite@notmuchmail.org,someone@example.com\;' \\r
101 +             [cc]=test_suite_other@notmuchmail.org\r
102 +\r
103 +test_emacs "(notmuch-search \"id:\\\"${gen_msg_id}\\\"\")\r
104 +           (notmuch-test-wait)\r
105 +           (notmuch-search-reply-to-thread)\r
106 +           (test-output)"\r
107 +cat <<EOF >EXPECTED\r
108 +From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
109 +To: Sender <sender@example.com>, someone@example.com\r
110 +Subject: Re: ${test_subtest_name}\r
111 +In-Reply-To: <${gen_msg_id}>\r
112 +Fcc: ${MAIL_DIR}/sent\r
113 +--text follows this line--\r
114 +Sender <sender@example.com> writes:\r
115 +\r
116 +> This is just a test message (#${gen_msg_cnt})\r
117 +EOF\r
118 +test_expect_equal_file OUTPUT EXPECTED\r
119 +\r
120  test_begin_subtest "Reply within emacs to a multipart/mixed message"\r
121  test_emacs '(notmuch-show "id:20091118002059.067214ed@hikari")\r
122                 (notmuch-show-reply)\r
123 -- \r
124 1.7.5.4\r
125 \r