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