[PATCH v2 4/4] test: test the new --from option to notmuch-reply
authorMark Walters <markwalters1009@gmail.com>
Sat, 4 Feb 2012 20:45:17 +0000 (20:45 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:06 +0000 (09:44 -0800)
b8/68e1adcfce8348470ea52661fce4f13e61935f [new file with mode: 0644]

diff --git a/b8/68e1adcfce8348470ea52661fce4f13e61935f b/b8/68e1adcfce8348470ea52661fce4f13e61935f
new file mode 100644 (file)
index 0000000..73c6f1d
--- /dev/null
@@ -0,0 +1,144 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 31828431FD2\r
+       for <notmuch@notmuchmail.org>; Sat,  4 Feb 2012 12:44:51 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ECbNiWiZhgk9 for <notmuch@notmuchmail.org>;\r
+       Sat,  4 Feb 2012 12:44:49 -0800 (PST)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+       [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A2495431FCF\r
+       for <notmuch@notmuchmail.org>; Sat,  4 Feb 2012 12:44:46 -0800 (PST)\r
+Received: by mail-we0-f181.google.com with SMTP id b10so4024656wer.26\r
+       for <notmuch@notmuchmail.org>; Sat, 04 Feb 2012 12:44:46 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=ZE+uezOiqrURWWYfGUToGg4+lHSBIk/arOgfD/IQagE=;\r
+       b=lRMWK9nKtjw/mvFg/T6+OEfjtVr1AMxI9koAid/KJQiVLjBIEkCJrkk1CPVyNR4Rhj\r
+       Rr/md+D/BwGS8YeT2Xw4wd9IbV+VXYmoLdRXbciVNMDVvCzKmQleBIHNzgxPD+OgqiQl\r
+       43l8x8OUeZfTTL7uR6MdhSAGf0HjxVrbRlu28=\r
+Received: by 10.216.135.35 with SMTP id t35mr4841954wei.9.1328388286390;\r
+       Sat, 04 Feb 2012 12:44:46 -0800 (PST)\r
+Received: from localhost (94-192-233-223.zone6.bethere.co.uk.\r
+ [94.192.233.223])     by mx.google.com with ESMTPS id\r
+ dw7sm14965290wib.4.2012.02.04.12.44.45        (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Sat, 04 Feb 2012 12:44:45 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 4/4] test: test the new --from option to notmuch-reply\r
+Date: Sat,  4 Feb 2012 20:45:17 +0000\r
+Message-Id: <1328388317-20161-5-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.2.3\r
+In-Reply-To: <1328388317-20161-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1328388317-20161-1-git-send-email-markwalters1009@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 04 Feb 2012 20:44:51 -0000\r
+\r
+---\r
+ test/reply |   69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r
+ 1 files changed, 69 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/reply b/test/reply\r
+index 00f4bea..0bb22bb 100755\r
+--- a/test/reply\r
++++ b/test/reply\r
+@@ -138,4 +138,73 @@ References: <${gen_msg_id}>\r
+ \r
+ On Tue, 05 Jan 2010 15:43:56 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
+ > 200-byte header"\r
++\r
++test_begin_subtest "reply --from=none"\r
++add_message '[from]="Sender <sender@example.com>"' \\r
++           [to]=test_suite@notmuchmail.org \\r
++           [subject]=notmuch-reply-test \\r
++          '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
++          '[body]="reply --from=none test"'\r
++\r
++output=$(notmuch reply --from=none id:${gen_msg_id})\r
++test_expect_equal "$output" "From: \r
++Subject: Re: notmuch-reply-test\r
++To: Sender <sender@example.com>\r
++In-Reply-To: <${gen_msg_id}>\r
++References: <${gen_msg_id}>\r
++\r
++On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
++> reply --from=none test"\r
++\r
++test_begin_subtest "reply --from:fallback-none"\r
++add_message '[from]="Sender <sender@example.com>"' \\r
++          '[to]="Someone Else <someone@example.com>"' \\r
++           [subject]=notmuch-reply-test \\r
++          '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
++          '[body]="reply --from=fallback-none test"'\r
++\r
++output=$(notmuch reply --from=fallback-none id:${gen_msg_id})\r
++test_expect_equal "$output" "From: \r
++Subject: Re: notmuch-reply-test\r
++To: Sender <sender@example.com>, Someone Else <someone@example.com>\r
++In-Reply-To: <${gen_msg_id}>\r
++References: <${gen_msg_id}>\r
++\r
++On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
++> reply --from=fallback-none test"\r
++\r
++test_begin_subtest "reply default from:"\r
++add_message '[from]="Sender <sender@example.com>"' \\r
++          '[to]="Someone Else <someone@example.com>"' \\r
++           [subject]=notmuch-reply-test \\r
++          '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
++          '[body]="reply default from: test"'\r
++\r
++output=$(notmuch reply id:${gen_msg_id})\r
++test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
++Subject: Re: notmuch-reply-test\r
++To: Sender <sender@example.com>, Someone Else <someone@example.com>\r
++In-Reply-To: <${gen_msg_id}>\r
++References: <${gen_msg_id}>\r
++\r
++On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
++> reply default from: test"\r
++\r
++test_begin_subtest "Reply --from=primary"\r
++add_message '[from]="Sender <sender@example.com>"' \\r
++           [to]=test_suite_other@notmuchmail.org \\r
++           [subject]=notmuch-reply-test \\r
++          '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \\r
++          '[body]="reply --from=primary"'\r
++\r
++output=$(notmuch reply --from=primary id:${gen_msg_id})\r
++test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
++Subject: Re: notmuch-reply-test\r
++To: Sender <sender@example.com>\r
++In-Reply-To: <${gen_msg_id}>\r
++References: <${gen_msg_id}>\r
++\r
++On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:\r
++> reply --from=primary"\r
++\r
+ test_done\r
+-- \r
+1.7.2.3\r
+\r