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