[PATCH v6 1/3] test: add tests for quoting of MML tags in replies
authorPieter Praet <pieter@praet.org>
Fri, 3 Feb 2012 10:24:07 +0000 (11:24 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:00 +0000 (09:44 -0800)
01/3c2d926c7533c2e8b24efb1b3440ac1dcf4f36 [new file with mode: 0644]

diff --git a/01/3c2d926c7533c2e8b24efb1b3440ac1dcf4f36 b/01/3c2d926c7533c2e8b24efb1b3440ac1dcf4f36
new file mode 100644 (file)
index 0000000..a8af261
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <pieter@praet.org>\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 B0EA7431FAF\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 02:26:21 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[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 O-vuRvv+3MPX for <notmuch@notmuchmail.org>;\r
+       Fri,  3 Feb 2012 02:26:20 -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 122F6431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Feb 2012 02:26:19 -0800 (PST)\r
+Received: by werb10 with SMTP id b10so2922906wer.26\r
+       for <notmuch@notmuchmail.org>; Fri, 03 Feb 2012 02:26:18 -0800 (PST)\r
+Received: by 10.216.132.214 with SMTP id o64mr5990622wei.26.1328264778869;\r
+       Fri, 03 Feb 2012 02:26:18 -0800 (PST)\r
+Received: from localhost ([109.131.13.166])\r
+       by mx.google.com with ESMTPS id x7sm5504573wif.10.2012.02.03.02.26.18\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 03 Feb 2012 02:26:18 -0800 (PST)\r
+From: Pieter Praet <pieter@praet.org>\r
+To: David Bremner <david@tethera.net>\r
+Subject: [PATCH v6 1/3] test: add tests for quoting of MML tags in replies\r
+Date: Fri,  3 Feb 2012 11:24:07 +0100\r
+Message-Id: <1328264649-27346-1-git-send-email-pieter@praet.org>\r
+X-Mailer: git-send-email 1.7.8.1\r
+In-Reply-To: <87r4yc2p3y.fsf@praet.org>\r
+References: <87r4yc2p3y.fsf@praet.org>\r
+Cc: Notmuch Mail <notmuch@notmuchmail.org>\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: Fri, 03 Feb 2012 10:26:21 -0000\r
+\r
+From: Aaron Ecay <aaronecay@gmail.com>\r
+\r
+The test is broken at this time; the next commit will introduce a fix.\r
+\r
+Edited-by: Pieter Praet <pieter@praet.org>:\r
+  Rebased to release branch, moved expected output into the actual test,\r
+  and fixed "Fcc:" line.\r
+---\r
+ test/emacs |   21 +++++++++++++++++++++\r
+ 1 files changed, 21 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index f36718e..db8e4ad 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -273,6 +273,27 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w\r
+ EOF\r
+ test_expect_equal_file OUTPUT EXPECTED\r
+ \r
++test_begin_subtest "Quote MML tags in reply"\r
++test_subtest_known_broken\r
++message_id='test-emacs-mml-quoting@message.id'\r
++add_message [id]="$message_id" \\r
++          "[subject]='$test_subtest_name'" \\r
++          '[body]="<#part disposition=inline>"'\r
++test_emacs "(notmuch-show \"id:$message_id\")\r
++            (notmuch-show-reply)\r
++            (test-output)"\r
++cat <<EOF >EXPECTED\r
++From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
++To: \r
++Subject: Re: Quote MML tags in reply\r
++In-Reply-To: <test-emacs-mml-quoting@message.id>\r
++Fcc: ${MAIL_DIR}/sent\r
++--text follows this line--\r
++On Tue, 05 Jan 2001 15:43:57 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
++> <#!part disposition=inline>\r
++EOF\r
++test_expect_equal_file OUTPUT EXPECTED\r
++\r
+ test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"\r
+ # save as archive to test that Emacs does not re-compress .gz\r
+ test_emacs '(let ((standard-input "\"attachment1.gz\""))\r
+-- \r
+1.7.8.1\r
+\r