1 Return-Path: <markwalters1009@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 31828431FD2
\r
6 for <notmuch@notmuchmail.org>; Sat, 4 Feb 2012 12:44:51 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id ECbNiWiZhgk9 for <notmuch@notmuchmail.org>;
\r
18 Sat, 4 Feb 2012 12:44:49 -0800 (PST)
\r
19 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com
\r
20 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id A2495431FCF
\r
23 for <notmuch@notmuchmail.org>; Sat, 4 Feb 2012 12:44:46 -0800 (PST)
\r
24 Received: by mail-we0-f181.google.com with SMTP id b10so4024656wer.26
\r
25 for <notmuch@notmuchmail.org>; Sat, 04 Feb 2012 12:44:46 -0800 (PST)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
28 bh=ZE+uezOiqrURWWYfGUToGg4+lHSBIk/arOgfD/IQagE=;
\r
29 b=lRMWK9nKtjw/mvFg/T6+OEfjtVr1AMxI9koAid/KJQiVLjBIEkCJrkk1CPVyNR4Rhj
\r
30 Rr/md+D/BwGS8YeT2Xw4wd9IbV+VXYmoLdRXbciVNMDVvCzKmQleBIHNzgxPD+OgqiQl
\r
31 43l8x8OUeZfTTL7uR6MdhSAGf0HjxVrbRlu28=
\r
32 Received: by 10.216.135.35 with SMTP id t35mr4841954wei.9.1328388286390;
\r
33 Sat, 04 Feb 2012 12:44:46 -0800 (PST)
\r
34 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.
\r
35 [94.192.233.223]) by mx.google.com with ESMTPS id
\r
36 dw7sm14965290wib.4.2012.02.04.12.44.45 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Sat, 04 Feb 2012 12:44:45 -0800 (PST)
\r
38 From: Mark Walters <markwalters1009@gmail.com>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: [PATCH v2 4/4] test: test the new --from option to notmuch-reply
\r
41 Date: Sat, 4 Feb 2012 20:45:17 +0000
\r
42 Message-Id: <1328388317-20161-5-git-send-email-markwalters1009@gmail.com>
\r
43 X-Mailer: git-send-email 1.7.2.3
\r
44 In-Reply-To: <1328388317-20161-1-git-send-email-markwalters1009@gmail.com>
\r
45 References: <1328388317-20161-1-git-send-email-markwalters1009@gmail.com>
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\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: Sat, 04 Feb 2012 20:44:51 -0000
\r
61 test/reply | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\r
62 1 files changed, 69 insertions(+), 0 deletions(-)
\r
64 diff --git a/test/reply b/test/reply
\r
65 index 00f4bea..0bb22bb 100755
\r
68 @@ -138,4 +138,73 @@ References: <${gen_msg_id}>
\r
70 On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
\r
73 +test_begin_subtest "reply --from=none"
\r
74 +add_message '[from]="Sender <sender@example.com>"' \
\r
75 + [to]=test_suite@notmuchmail.org \
\r
76 + [subject]=notmuch-reply-test \
\r
77 + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
78 + '[body]="reply --from=none test"'
\r
80 +output=$(notmuch reply --from=none id:${gen_msg_id})
\r
81 +test_expect_equal "$output" "From:
\r
82 +Subject: Re: notmuch-reply-test
\r
83 +To: Sender <sender@example.com>
\r
84 +In-Reply-To: <${gen_msg_id}>
\r
85 +References: <${gen_msg_id}>
\r
87 +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
\r
88 +> reply --from=none test"
\r
90 +test_begin_subtest "reply --from:fallback-none"
\r
91 +add_message '[from]="Sender <sender@example.com>"' \
\r
92 + '[to]="Someone Else <someone@example.com>"' \
\r
93 + [subject]=notmuch-reply-test \
\r
94 + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
95 + '[body]="reply --from=fallback-none test"'
\r
97 +output=$(notmuch reply --from=fallback-none id:${gen_msg_id})
\r
98 +test_expect_equal "$output" "From:
\r
99 +Subject: Re: notmuch-reply-test
\r
100 +To: Sender <sender@example.com>, Someone Else <someone@example.com>
\r
101 +In-Reply-To: <${gen_msg_id}>
\r
102 +References: <${gen_msg_id}>
\r
104 +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
\r
105 +> reply --from=fallback-none test"
\r
107 +test_begin_subtest "reply default from:"
\r
108 +add_message '[from]="Sender <sender@example.com>"' \
\r
109 + '[to]="Someone Else <someone@example.com>"' \
\r
110 + [subject]=notmuch-reply-test \
\r
111 + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
112 + '[body]="reply default from: test"'
\r
114 +output=$(notmuch reply id:${gen_msg_id})
\r
115 +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
116 +Subject: Re: notmuch-reply-test
\r
117 +To: Sender <sender@example.com>, Someone Else <someone@example.com>
\r
118 +In-Reply-To: <${gen_msg_id}>
\r
119 +References: <${gen_msg_id}>
\r
121 +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
\r
122 +> reply default from: test"
\r
124 +test_begin_subtest "Reply --from=primary"
\r
125 +add_message '[from]="Sender <sender@example.com>"' \
\r
126 + [to]=test_suite_other@notmuchmail.org \
\r
127 + [subject]=notmuch-reply-test \
\r
128 + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
129 + '[body]="reply --from=primary"'
\r
131 +output=$(notmuch reply --from=primary id:${gen_msg_id})
\r
132 +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
133 +Subject: Re: notmuch-reply-test
\r
134 +To: Sender <sender@example.com>
\r
135 +In-Reply-To: <${gen_msg_id}>
\r
136 +References: <${gen_msg_id}>
\r
138 +On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
\r
139 +> reply --from=primary"
\r