Re: notmuch-emacs should correctly handle signature status on reply
[notmuch-archives.git] / a7 / f344f8fa27fca2937c72b5ebf09498115e629b
1 Return-Path: <amdragon@mit.edu>\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 EB355431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 21 Apr 2014 11:38:04 -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: -0.7\r
10 X-Spam-Level: \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 okquzmo0s8tU for <notmuch@notmuchmail.org>;\r
16         Mon, 21 Apr 2014 11:37:59 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-3.mit.edu (dmz-mailsec-scanner-3.mit.edu\r
18         [18.9.25.14])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id F37E2431FBF\r
22         for <notmuch@notmuchmail.org>; Mon, 21 Apr 2014 11:37:58 -0700 (PDT)\r
23 X-AuditID: 1209190e-f79ee6d000000c40-94-53556585835d\r
24 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
25         (using TLS with cipher AES256-SHA (256/256 bits))\r
26         (Client did not present a certificate)\r
27         by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
28         id 81.75.03136.58565535; Mon, 21 Apr 2014 14:37:57 -0400 (EDT)\r
29 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
30         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s3LIbubL022318; \r
31         Mon, 21 Apr 2014 14:37:57 -0400\r
32 Received: from drake.dyndns.org\r
33         (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
34         [216.15.114.40]) (authenticated bits=0)\r
35         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
36         by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s3LIbsXb029712\r
37         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
38         Mon, 21 Apr 2014 14:37:56 -0400\r
39 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
40         (envelope-from <amdragon@mit.edu>)\r
41         id 1WcJ6I-0003kx-CD; Mon, 21 Apr 2014 14:37:54 -0400\r
42 From: Austin Clements <amdragon@MIT.EDU>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH 03/11] emacs: Fix coding system in\r
45         `notmuch-show-view-raw-message'\r
46 Date: Mon, 21 Apr 2014 14:37:40 -0400\r
47 Message-Id: <1398105468-14317-4-git-send-email-amdragon@mit.edu>\r
48 X-Mailer: git-send-email 1.9.1\r
49 In-Reply-To: <1398105468-14317-1-git-send-email-amdragon@mit.edu>\r
50 References: <1398105468-14317-1-git-send-email-amdragon@mit.edu>\r
51 X-Brightmail-Tracker:\r
52  H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsUixG6nrtuaGhpscPCStcX1mzOZHRg9nq26\r
53         xRzAGMVlk5Kak1mWWqRvl8CV8f/McZaCXp6KU5/XsTYw9nB1MXJySAiYSDze84YRwhaTuHBv\r
54         PVsXIxeHkMBsJokJJxYyQjgbGSUWfPjCDOHcYZKYsugvE4Qzl1Fi2e0F7CD9bAIaEtv2Lweb\r
55         JSIgLbHz7mzWLkYODmYBNYk/XSogYWGBIIkJV+6zgdgsAqoSH779ByvnFXCQuHv7MzPEGXIS\r
56         J49NZgWxOQUcJdpWvwQbLwRUs2HvGqYJjPwLGBlWMcqm5Fbp5iZm5hSnJusWJyfm5aUW6Rrr\r
57         5WaW6KWmlG5iBIUNpyTfDsavB5UOMQpwMCrx8BYYhQYLsSaWFVfmHmKU5GBSEuV9FQUU4kvK\r
58         T6nMSCzOiC8qzUktPsQowcGsJMK7XhMox5uSWFmVWpQPk5LmYFES531rbRUsJJCeWJKanZpa\r
59         kFoEk5Xh4FCS4L2ZAtQoWJSanlqRlplTgpBm4uAEGc4DNPwiSA1vcUFibnFmOkT+FKOilDhv\r
60         G0hCACSRUZoH1wuL61eM4kCvCPO2gFTxAFMCXPcroMFMQIOfbAkBGVySiJCSamCc8nqqrltH\r
61         V57UL9P9RwJua5dd9OFNmh73ZoHBUbk18jzJ/hoar5Nb03x97HZ9TBTa9XG/ttKD2iPi839e\r
62         EdFLuVuRzSVW07Y2fmtQTLftfaWkbxKv3/U8bXgpPe+P8u35jKW+AbveTmRkkuiTVn69+qnS\r
63         JQfbf5pcVVw7XvCkdu/bs7PKYYYSS3FGoqEWc1FxIgAsebxFxgIAAA==\r
64 X-BeenThere: notmuch@notmuchmail.org\r
65 X-Mailman-Version: 2.1.13\r
66 Precedence: list\r
67 List-Id: "Use and development of the notmuch mail system."\r
68         <notmuch.notmuchmail.org>\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
72 List-Post: <mailto:notmuch@notmuchmail.org>\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
75         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
76 X-List-Received-Date: Mon, 21 Apr 2014 18:38:05 -0000\r
77 \r
78 This fixes the known-broken test of viewing 8bit messages added by the\r
79 previous commit.\r
80 ---\r
81  emacs/notmuch-show.el       | 5 +++--\r
82  test/T455-emacs-charsets.sh | 1 -\r
83  2 files changed, 3 insertions(+), 3 deletions(-)\r
84 \r
85 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
86 index 949ac09..2b225df 100644\r
87 --- a/emacs/notmuch-show.el\r
88 +++ b/emacs/notmuch-show.el\r
89 @@ -1748,11 +1748,12 @@ (defun notmuch-show-previous-open-message ()\r
90    (notmuch-show-message-adjust))\r
91  \r
92  (defun notmuch-show-view-raw-message ()\r
93 -  "View the file holding the current message."\r
94 +  "View the original source of the current message."\r
95    (interactive)\r
96    (let* ((id (notmuch-show-get-message-id))\r
97          (buf (get-buffer-create (concat "*notmuch-raw-" id "*"))))\r
98 -    (call-process notmuch-command nil buf nil "show" "--format=raw" id)\r
99 +    (let ((coding-system-for-read 'no-conversion))\r
100 +      (call-process notmuch-command nil buf nil "show" "--format=raw" id))\r
101      (switch-to-buffer buf)\r
102      (goto-char (point-min))\r
103      (set-buffer-modified-p nil)\r
104 diff --git a/test/T455-emacs-charsets.sh b/test/T455-emacs-charsets.sh\r
105 index a42a1d2..3078f9c 100755\r
106 --- a/test/T455-emacs-charsets.sh\r
107 +++ b/test/T455-emacs-charsets.sh\r
108 @@ -128,7 +128,6 @@ EOF\r
109  test_expect_equal_file OUTPUT EXPECTED\r
110  \r
111  test_begin_subtest "8bit text message are not decoded when viewing"\r
112 -test_subtest_known_broken\r
113  test_emacs '(notmuch-show "id:test-plain-8bit@example.com")\r
114             (notmuch-show-view-raw-message)\r
115             (test-visible-output "OUTPUT.raw")'\r
116 -- \r
117 1.9.1\r
118 \r