[PATCH v3 1/2] test: add tests for quoting of MML tags in replies
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Wed, 1 Feb 2012 02:49:40 +0000 (06:49 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:43:51 +0000 (09:43 -0800)
68/4fda4ba4d5c112f22c5171d8bfed533a562a0c [new file with mode: 0644]

diff --git a/68/4fda4ba4d5c112f22c5171d8bfed533a562a0c b/68/4fda4ba4d5c112f22c5171d8bfed533a562a0c
new file mode 100644 (file)
index 0000000..9b14394
--- /dev/null
@@ -0,0 +1,107 @@
+Return-Path: <dmitry.kurochkin@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 251D14196FF\r
+       for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 18:51:10 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, 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 VgZBO01kJBeZ for <notmuch@notmuchmail.org>;\r
+       Tue, 31 Jan 2012 18:51:08 -0800 (PST)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 5E964431E64\r
+       for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 18:51:08 -0800 (PST)\r
+Received: by bke11 with SMTP id 11so662825bke.26\r
+       for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 18:51:07 -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=60nvJhmsP+ov5MVc62Ro8EsM2gVlet4ukr3MIjTyyzU=;\r
+       b=uc+B/uJ/lc2hZyi78Ax9Vew+E+DF4MhMqW/Rzxo8/jz3S2/7j4nK1h58tybF3uUGv5\r
+       x2NpUb4LjK1YDs/t4D01S5kh32CJ55Tie7XdRBe51Az/6Zbse8rfMDqmzo0XEVn2k9xU\r
+       S4q0QiD2Tya1Gvy86l1RCSSPZWXr0Wrneub8I=\r
+Received: by 10.205.122.134 with SMTP id gg6mr12042359bkc.41.1328064667008;\r
+       Tue, 31 Jan 2012 18:51:07 -0800 (PST)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id t17sm50030815bke.6.2012.01.31.18.51.05\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Tue, 31 Jan 2012 18:51:06 -0800 (PST)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v3 1/2] test: add tests for quoting of MML tags in replies\r
+Date: Wed,  1 Feb 2012 06:49:40 +0400\r
+Message-Id: <1328064581-13949-2-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.9\r
+In-Reply-To: <1328064581-13949-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+References: <1326998589-37187-1-git-send-email-aaronecay@gmail.com>\r
+       <1328064581-13949-1-git-send-email-dmitry.kurochkin@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: Wed, 01 Feb 2012 02:51:10 -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
+ test/emacs                                    |   12 ++++++++++++\r
+ test/emacs.expected-output/quote-mml-in-reply |    7 +++++++\r
+ 2 files changed, 19 insertions(+), 0 deletions(-)\r
+ create mode 100644 test/emacs.expected-output/quote-mml-in-reply\r
+\r
+diff --git a/test/emacs b/test/emacs\r
+index 8ca4c8a..a3f4893 100755\r
+--- a/test/emacs\r
++++ b/test/emacs\r
+@@ -273,6 +273,18 @@ 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 "(let ((notmuch-fcc-dirs nil))\r
++            (notmuch-show \"id:$message_id\")\r
++            (notmuch-show-reply)\r
++            (test-output))"\r
++test_expect_equal_file OUTPUT "$EXPECTED/quote-mml-in-reply"\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
+diff --git a/test/emacs.expected-output/quote-mml-in-reply b/test/emacs.expected-output/quote-mml-in-reply\r
+new file mode 100644\r
+index 0000000..adec92a\r
+--- /dev/null\r
++++ b/test/emacs.expected-output/quote-mml-in-reply\r
+@@ -0,0 +1,7 @@\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
++--text follows this line--\r
++On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
++> <#!part disposition=inline>\r
+-- \r
+1.7.9\r
+\r