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 2732E431FD2 for ; Sat, 28 Jan 2012 22:07:25 -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 UZzqhYE+SdwZ for ; Sat, 28 Jan 2012 22:07:24 -0800 (PST) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 6C2F1431FB6 for ; Sat, 28 Jan 2012 22:07:24 -0800 (PST) Received: by qcpx40 with SMTP id x40so1996218qcp.26 for ; Sat, 28 Jan 2012 22:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=6JAetgRdu28Bs4g0+51Dt52mKoFu+kTv31w2mvf1tnw=; b=b9P0O6gp7QZGz9KQ5V5xVAcKHpRbr4LXbMMR/mRbfrH1ugRkmRjLeln01t8hUWNUIC 8r2HdBbn6VPpTpTZ9422wpUs5shodNa8OLZSYZIp6nkSulqH6O+BRYMaZPKNH9Fpy7/4 8tELIeH0XKMcUimPC58CkyhhbDiJMGUOdCE4w= Received: by 10.229.136.204 with SMTP id s12mr4417707qct.96.1327817243717; Sat, 28 Jan 2012 22:07:23 -0800 (PST) Received: from localhost.localdomain (c-68-80-94-73.hsd1.pa.comcast.net. [68.80.94.73]) by mx.google.com with ESMTPS id dm7sm26381298qab.5.2012.01.28.22.07.21 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 28 Jan 2012 22:07:22 -0800 (PST) From: Aaron Ecay To: notmuch@notmuchmail.org Subject: [PATCH 1/2] emacs: Add tests for quoting of MML tags in replies Date: Sun, 29 Jan 2012 01:07:07 -0500 Message-Id: <1327817229-18124-1-git-send-email-aaronecay@gmail.com> X-Mailer: git-send-email 1.7.9 In-Reply-To: <20120126191654.GF1940@mit.edu> References: <20120126191654.GF1940@mit.edu> 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: Sun, 29 Jan 2012 06:07:25 -0000 The test is broken at this time; the next commit will introduce a fix. --- Thanks for the reminder, Austin. Things got hectic, and it took a little bludgeoning to get the test suite to behave. I *think* I got it, although I am by no means confident. Specifically, I am seeing some unrelated(?) test failures in the emacs suite, so I'd appreciate it if someone with a well-functioning test suite tried out these patches before they are pushed, to be sure I didn't break anything. I tried to follow the "first patch introduces a failing test, second patch fixes it" convention. test/emacs | 14 ++++++++++++++ test/emacs.expected-output/quote-mml | 9 +++++++++ 2 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/quote-mml diff --git a/test/emacs b/test/emacs index 8ca4c8a..a57513a 100755 --- a/test/emacs +++ b/test/emacs @@ -273,6 +273,20 @@ 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 on reply" +test_subtest_known_broken +add_message '[from]="1337 h4xor "' \ + '[to]="Unsuspecting rube "' \ + '[subject]="hackety hack hack"' \ + '[body]="<#part type="application/octet-stream" filename="foo" disposition=attachment> +<#/part>"' \ + '[id]="test-mml-quoting@msg.id"' +test_emacs "(notmuch-show \"id:test-mml-quoting@msg.id\") + (notmuch-show-reply-sender) + (test-output)" +test_expect_equal_file OUTPUT "$EXPECTED/quote-mml" + + 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 b/test/emacs.expected-output/quote-mml new file mode 100644 index 0000000..01bd2ca --- /dev/null +++ b/test/emacs.expected-output/quote-mml @@ -0,0 +1,9 @@ +From: Notmuch Test Suite +To: 1337 h4xor +Subject: Re: hackety hack hack +In-Reply-To: +Fcc: /home/aecay/development/notmuch/test/tmp.emacs/mail/sent +--text follows this line-- +On Fri, 05 Jan 2001 15:43:57 +0000, 1337 h4xor wrote: +> <#!part type=application/octet-stream filename=foo disposition=attachment> +> <#!/part> -- 1.7.9