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 860AE431FAF for ; Wed, 1 Feb 2012 12:38:48 -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 yiLXErYCMSwo for ; Wed, 1 Feb 2012 12:38:48 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id CD633431FAE for ; Wed, 1 Feb 2012 12:38:47 -0800 (PST) Received: by wibhi8 with SMTP id hi8so1321898wib.26 for ; Wed, 01 Feb 2012 12:38:46 -0800 (PST) Received: by 10.180.103.97 with SMTP id fv1mr117049wib.17.1328128726710; Wed, 01 Feb 2012 12:38:46 -0800 (PST) Received: from localhost ([109.131.39.11]) by mx.google.com with ESMTPS id q2sm35349530wiy.7.2012.02.01.12.38.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Feb 2012 12:38:45 -0800 (PST) From: Pieter Praet To: Dmitry Kurochkin Subject: [PATCH v5 1/2] test: add tests for quoting of MML tags in replies Date: Wed, 1 Feb 2012 21:36:35 +0100 Message-Id: <1328128595-30439-1-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.8.1 In-Reply-To: <1328104451-17842-1-git-send-email-pieter@praet.org> References: <1328104451-17842-1-git-send-email-pieter@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: Wed, 01 Feb 2012 20:38:48 -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..17129b7 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 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