1 Return-Path: <pieter@praet.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 3B69D429E5B
\r
6 for <notmuch@notmuchmail.org>; Wed, 1 Feb 2012 05:56:27 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id mm+r8LsNzqUK for <notmuch@notmuchmail.org>;
\r
16 Wed, 1 Feb 2012 05:56:26 -0800 (PST)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 956E5431E64 for <notmuch@notmuchmail.org>; Wed, 1 Feb 2012 05:56:26 -0800
\r
22 Received: by wgbdt12 with SMTP id dt12so1149269wgb.2
\r
23 for <notmuch@notmuchmail.org>; Wed, 01 Feb 2012 05:56:25 -0800 (PST)
\r
24 Received: by 10.180.90.212 with SMTP id by20mr42253409wib.12.1328104585205;
\r
25 Wed, 01 Feb 2012 05:56:25 -0800 (PST)
\r
26 Received: from localhost ([109.131.39.11])
\r
27 by mx.google.com with ESMTPS id di5sm74061993wib.3.2012.02.01.05.56.24
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Wed, 01 Feb 2012 05:56:24 -0800 (PST)
\r
30 From: Pieter Praet <pieter@praet.org>
\r
31 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
32 Subject: [PATCH v4 1/2] test: add tests for quoting of MML tags in replies
\r
33 Date: Wed, 1 Feb 2012 14:54:11 +0100
\r
34 Message-Id: <1328104451-17842-1-git-send-email-pieter@praet.org>
\r
35 X-Mailer: git-send-email 1.7.8.1
\r
36 In-Reply-To: <1328064581-13949-2-git-send-email-dmitry.kurochkin@gmail.com>
\r
37 References: <1328064581-13949-2-git-send-email-dmitry.kurochkin@gmail.com>
\r
38 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Wed, 01 Feb 2012 13:56:27 -0000
\r
53 From: Aaron Ecay <aaronecay@gmail.com>
\r
55 The test is broken at this time; the next commit will introduce a fix.
\r
57 Edited-by: Pieter Praet <pieter@praet.org>:
\r
58 Moved expected output into the actual test and fixed "Fcc:" line.
\r
61 test/emacs | 21 +++++++++++++++++++++
\r
62 1 files changed, 21 insertions(+), 0 deletions(-)
\r
64 diff --git a/test/emacs b/test/emacs
\r
65 index 8ca4c8a..1fdd3a5 100755
\r
68 @@ -273,6 +273,27 @@ On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> w
\r
70 test_expect_equal_file OUTPUT EXPECTED
\r
72 +test_begin_subtest "Quote MML tags in reply"
\r
73 +test_subtest_known_broken
\r
74 +message_id='test-emacs-mml-quoting@message.id'
\r
75 +add_message [id]="$message_id" \
\r
76 + "[subject]='$test_subtest_name'" \
\r
77 + '[body]="<#part disposition=inline>"'
\r
78 +test_emacs "(notmuch-show \"id:$message_id\")
\r
79 + (notmuch-show-reply)
\r
81 +cat <<EOF >EXPECTED
\r
82 +From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
84 +Subject: Re: Quote MML tags in reply
\r
85 +In-Reply-To: <test-emacs-mml-quoting@message.id>
\r
86 +Fcc: $(pwd)/mail/sent
\r
87 +--text follows this line--
\r
88 +On Fri, 05 Jan 2001 15:43:57 +0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:
\r
89 +> <#!part disposition=inline>
\r
91 +test_expect_equal_file OUTPUT EXPECTED
\r
93 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"
\r
94 # save as archive to test that Emacs does not re-compress .gz
\r
95 test_emacs '(let ((standard-input "\"attachment1.gz\""))
\r