Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 5a / 1dd909d08caf5db51a8e64e0e2c1828fccf99c
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 2D89F429E27\r
6         for <notmuch@notmuchmail.org>; Mon,  9 May 2011 18:24:47 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 1.7\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.7 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, FREEMAIL_REPLY=2.499, RCVD_IN_DNSWL_LOW=-0.7]\r
14         autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id fzABzXj3Geml for <notmuch@notmuchmail.org>;\r
18         Mon,  9 May 2011 18:24:46 -0700 (PDT)\r
19 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
20         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 39060429E26\r
23         for <notmuch@notmuchmail.org>; Mon,  9 May 2011 18:24:46 -0700 (PDT)\r
24 Received: by fxm8 with SMTP id 8so4302837fxm.26\r
25         for <notmuch@notmuchmail.org>; Mon, 09 May 2011 18:24:44 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
27         h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer\r
28         :in-reply-to:references;\r
29         bh=EgBLAgshfdXltEArdVpD1u+X53chFtddWFVDJnUDhpI=;\r
30         b=imtkDgpcB1/lyaSJdl0fOa3xkRSUCEVSnf/jgdnL9FukZcZtUiv32dYvtTsgOCb7Vj\r
31         cN7tEaS5QrMqjvzSSzL0aAp4H1zO5SoUlBM5e0Pywv3fxu03iSszgd65bcwpMXccdbTB\r
32         4l5PAznpGqjki/KE2vxLIdpkc1gd/kMf8V2fk=\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
34         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
35         b=nC2ZpoRz5Iku3z27ofZZUpYW4mb4yhYuquGp8ErUTsyFrduIX20U0BtMqI0irn0qD5\r
36         5df/7pH4V8AdPENyayeyXvqhbxtt3GMjTsHAEBIGo4OF0Dp0un6B7Bg7EFoPnZTAZOuG\r
37         4QvyHx8vVyGDi6e7ed+HkMN1+8Dej5ix6Ncno=\r
38 Received: by 10.223.59.81 with SMTP id k17mr366749fah.94.1304990684851;\r
39         Mon, 09 May 2011 18:24:44 -0700 (PDT)\r
40 Received: from localhost ([91.144.186.21])\r
41         by mx.google.com with ESMTPS id t15sm45904fau.0.2011.05.09.18.24.43\r
42         (version=TLSv1/SSLv3 cipher=OTHER);\r
43         Mon, 09 May 2011 18:24:44 -0700 (PDT)\r
44 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
45 To: Notmuch Mail <notmuch@notmuchmail.org>\r
46 Subject: [PATCH] test: saving attachments from within emacs using\r
47         notmuch-show-save-part\r
48 Date: Tue, 10 May 2011 05:24:49 +0400\r
49 Message-Id: <1304990689-10933-1-git-send-email-dmitry.kurochkin@gmail.com>\r
50 X-Mailer: git-send-email 1.7.5.1\r
51 In-Reply-To: <1304990327-8665-1-git-send-email-dmitry.kurochkin@gmail.com>\r
52 References: <1304990327-8665-1-git-send-email-dmitry.kurochkin@gmail.com>\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Tue, 10 May 2011 01:24:47 -0000\r
66 \r
67 ---\r
68 Oops, the previos\r
69 patch (id:"1304990327-8665-1-git-send-email-dmitry.kurochkin@gmail.com")\r
70 has wrong title.\r
71 \r
72 s/notmuch-show-save-attachments/notmuch-show-save-part/\r
73 \r
74 Regards,\r
75   Dmitry\r
76 \r
77  test/emacs |   14 +++++++++++---\r
78  1 files changed, 11 insertions(+), 3 deletions(-)\r
79 \r
80 diff --git a/test/emacs b/test/emacs\r
81 index 75dec89..675a887 100755\r
82 --- a/test/emacs\r
83 +++ b/test/emacs\r
84 @@ -112,9 +112,17 @@ Fcc: $(pwd)/mail/sent\r
85  On Fri, 29 Mar 1974 10:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> wrote:\r
86  > This is a test that messages are sent via SMTP"\r
87  \r
88 -test_begin_subtest "Save attachment from within emacs"\r
89 -echo "./attachment" | test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-save-attachments)' > /dev/null 2>&1\r
90 -output=$(cat attachment)\r
91 +test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"\r
92 +# save as archive to test that Emacs does not re-compress .gz\r
93 +echo "./attachment1.gz" | test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-save-attachments)' > /dev/null 2>&1\r
94 +output=$(cat attachment1.gz)\r
95 +expected=$(cat $EXPECTED/attachment)\r
96 +test_expect_equal "$output" "$expected"\r
97 +\r
98 +test_begin_subtest "Save attachment from within emacs using notmuch-show-save-part"\r
99 +# save as archive to test that Emacs does not re-compress .gz\r
100 +echo "./attachment2.gz" | test_emacs '(notmuch-show-save-part "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com" 5)' > /dev/null 2>&1\r
101 +output=$(cat attachment2.gz)\r
102  expected=$(cat $EXPECTED/attachment)\r
103  test_expect_equal "$output" "$expected"\r
104  \r
105 -- \r
106 1.7.5.1\r
107 \r