Re: Problem with draft mails when using offlineimap
[notmuch-archives.git] / fc / 93bb899b90873dc66a1e967ed19d8b2440468a
1 Return-Path: <dmitry.kurochkin@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 BCC39431FAF\r
6         for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 10:03:30 -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.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 yfBvzvcaIkR8 for <notmuch@notmuchmail.org>;\r
17         Mon, 26 Mar 2012 10:03:30 -0700 (PDT)\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
19         [209.85.214.53]) (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 D5489431FAE\r
22         for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 10:03:29 -0700 (PDT)\r
23 Received: by bkwj4 with SMTP id j4so4830420bkw.26\r
24         for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 10:03:28 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=from:to:subject:in-reply-to:references:date:message-id:mime-version\r
27         :content-type; bh=QILD3Q5FyrNXfv8S6D8pI9Dmv2Y4IBzJxOngo3kFE8I=;\r
28         b=bjvMixqPF5MDxuG/lAKZSsJ5K3eJMpPHwoim266JaR4PcUzRoKs+5UXeKdJn7CqTP2\r
29         bOuppQxDDW9kWDKgAWGmZG3vjhzbESasCFS5UuS2+Y+LuIGLsMRy6GByv9e9fml0W5Q9\r
30         X2Y8mmP9V/BxK8caZPCGD4j985acYkCyf2GpSNlUHfFEoxvUff5PRzdKdTZTX/DXKEQh\r
31         hgyVptwbUO+Yxl8VthLMuuSNLOOxCs1e9DciR9K4qb5kcK7nm0JWbCDR+9e8SLJaPDz1\r
32         StHfyCeB5+oyFptkuKzWPSjSHIphsCDg7IomrarvwTI/HnVox6BZgVNnu6bTAqzmi+R4\r
33         phCQ==\r
34 Received: by 10.205.139.67 with SMTP id iv3mr8979086bkc.8.1332781408286;\r
35         Mon, 26 Mar 2012 10:03:28 -0700 (PDT)\r
36 Received: from localhost ([91.144.186.21])\r
37         by mx.google.com with ESMTPS id f5sm33751608bke.9.2012.03.26.10.03.26\r
38         (version=TLSv1/SSLv3 cipher=OTHER);\r
39         Mon, 26 Mar 2012 10:03:26 -0700 (PDT)\r
40 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
41 To: Adam Wolfe Gordon <awg+notmuch@xvx.ca>, notmuch@notmuchmail.org\r
42 Subject: Re: [BUG/PATCH 1/2] test: Tests for reply from alternate addresses in\r
43         emacs\r
44 In-Reply-To: <1332635232-15269-2-git-send-email-awg+notmuch@xvx.ca>\r
45 References: <1332635232-15269-1-git-send-email-awg+notmuch@xvx.ca>\r
46         <1332635232-15269-2-git-send-email-awg+notmuch@xvx.ca>User-Agent:\r
47         Notmuch/0.12+70~g06ecbeb (http://notmuchmail.org) Emacs/23.4.1\r
48         (x86_64-pc-linux-gnu)\r
49 Date: Mon, 26 Mar 2012 21:01:50 +0400\r
50 Message-ID: <87bonjjny9.fsf@gmail.com>\r
51 MIME-Version: 1.0\r
52 Content-Type: text/plain; charset=us-ascii\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Mon, 26 Mar 2012 17:03:30 -0000\r
66 \r
67 Adam Wolfe Gordon <awg+notmuch@xvx.ca> writes:\r
68 > Since the recent reply changes were pushed, there has been a bug that\r
69 > causes emacs to always reply from the primary address, even if the\r
70 > JSON or default CLI reply output uses an alternate address.\r
71 >\r
72 > This adds two tests to the emacs test library based on the two "Reply\r
73 > form..." tests in the reply test library. One is currently marked\r
74 > broken.\r
75 > ---\r
76 >  test/emacs |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++\r
77 >  1 files changed, 52 insertions(+), 0 deletions(-)\r
78 >\r
79 > diff --git a/test/emacs b/test/emacs\r
80 > index 8a28705..fa5d706 100755\r
81 > --- a/test/emacs\r
82 > +++ b/test/emacs\r
83 > @@ -274,6 +274,58 @@ Notmuch Test Suite <test_suite@notmuchmail.org> writes:\r
84 >  EOF\r
85 >  test_expect_equal_file OUTPUT EXPECTED\r
86 >  \r
87 > +test_begin_subtest "Reply from alternate address within emacs"\r
88 > +test_subtest_known_broken\r
89 > +add_message '[from]="Sender <sender@example.com>"' \\r
90 > +          [to]=test_suite_other@notmuchmail.org \\r
91 > +          [subject]=notmuch-reply-test \\r
92 > +         '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
93 > +         '[body]="reply from alternate address"'\r
94 \r
95 Please remove subject, data and body parameters.  add_message would\r
96 provide sane default values.\r
97 \r
98 > +\r
99 > +test_emacs "(notmuch-search \"id:\\\"${gen_msg_id}\\\"\")\r
100 > +         (notmuch-test-wait)\r
101 > +         (notmuch-search-reply-to-thread)\r
102 > +         (test-output)"\r
103 > +sed -i -e 's/^In-Reply-To: <.*>$/In-Reply-To: <XXX>/' OUTPUT\r
104 > +cat <<EOF >EXPECTED\r
105 > +From: Notmuch Test Suite <test_suite_other@notmuchmail.org>\r
106 > +To: Sender <sender@example.com>\r
107 > +Subject: Re: notmuch-reply-test\r
108 > +In-Reply-To: <XXX>\r
109 > +Fcc: ${MAIL_DIR}/sent\r
110 > +--text follows this line--\r
111 > +Sender <sender@example.com> writes:\r
112 > +\r
113 > +> reply from alternate address\r
114 > +EOF\r
115 > +test_expect_equal_file OUTPUT EXPECTED\r
116 > +\r
117 > +test_begin_subtest "Reply from address in named group list within emacs"\r
118 > +add_message '[from]="Sender <sender@example.com>"' \\r
119 > +            '[to]=group:test_suite@notmuchmail.org,someone@example.com\;' \\r
120 > +             [cc]=test_suite_other@notmuchmail.org \\r
121 > +             [subject]=notmuch-reply-test \\r
122 > +            '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
123 > +            '[body]="Reply from address in named group list"'\r
124 \r
125 Same here.\r
126 \r
127 Regards,\r
128   Dmitry\r
129 \r
130 > +\r
131 > +test_emacs "(notmuch-search \"id:\\\"${gen_msg_id}\\\"\")\r
132 > +         (notmuch-test-wait)\r
133 > +         (notmuch-search-reply-to-thread)\r
134 > +         (test-output)"\r
135 > +sed -i -e 's/^In-Reply-To: <.*>$/In-Reply-To: <XXX>/' OUTPUT\r
136 > +cat <<EOF >EXPECTED\r
137 > +From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
138 > +To: Sender <sender@example.com>, someone@example.com\r
139 > +Subject: Re: notmuch-reply-test\r
140 > +In-Reply-To: <XXX>\r
141 > +Fcc: ${MAIL_DIR}/sent\r
142 > +--text follows this line--\r
143 > +Sender <sender@example.com> writes:\r
144 > +\r
145 > +> Reply from address in named group list\r
146 > +EOF\r
147 > +test_expect_equal_file OUTPUT EXPECTED\r
148 > +\r
149 >  test_begin_subtest "Reply within emacs to a multipart/mixed message"\r
150 >  test_emacs '(notmuch-show "id:20091118002059.067214ed@hikari")\r
151 >               (notmuch-show-reply)\r
152 > -- \r
153 > 1.7.5.4\r
154 >\r
155 > _______________________________________________\r
156 > notmuch mailing list\r
157 > notmuch@notmuchmail.org\r
158 > http://notmuchmail.org/mailman/listinfo/notmuch\r