From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3B69D429E5B for ; Wed, 1 Feb 2012 05:56:27 -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 mm+r8LsNzqUK for ; Wed, 1 Feb 2012 05:56:26 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 956E5431E64 for ; Wed, 1 Feb 2012 05:56:26 -0800 (PST) Received: by wgbdt12 with SMTP id dt12so1149269wgb.2 for ; Wed, 01 Feb 2012 05:56:25 -0800 (PST) Received: by 10.180.90.212 with SMTP id by20mr42253409wib.12.1328104585205; Wed, 01 Feb 2012 05:56:25 -0800 (PST) Received: from localhost ([109.131.39.11]) by mx.google.com with ESMTPS id di5sm74061993wib.3.2012.02.01.05.56.24 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Feb 2012 05:56:24 -0800 (PST) From: Pieter Praet To: Dmitry Kurochkin Subject: [PATCH v4 1/2] test: add tests for quoting of MML tags in replies Date: Wed, 1 Feb 2012 14:54:11 +0100 Message-Id: <1328104451-17842-1-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.8.1 In-Reply-To: <1328064581-13949-2-git-send-email-dmitry.kurochkin@gmail.com> References: <1328064581-13949-2-git-send-email-dmitry.kurochkin@gmail.com> 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: Wed, 01 Feb 2012 13:56:27 -0000 From: Aaron Ecay The test is broken at this time; the next commit will introduce a fix. Edited-by: Pieter Praet : 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 8ca4c8a..1fdd3a5 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: $(pwd)/mail/sent +--text follows this line-- +On Fri, 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