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 EB355431FBC for ; Mon, 21 Apr 2014 11:38:04 -0700 (PDT) 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 okquzmo0s8tU for ; Mon, 21 Apr 2014 11:37:59 -0700 (PDT) Received: from dmz-mailsec-scanner-3.mit.edu (dmz-mailsec-scanner-3.mit.edu [18.9.25.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id F37E2431FBF for ; Mon, 21 Apr 2014 11:37:58 -0700 (PDT) X-AuditID: 1209190e-f79ee6d000000c40-94-53556585835d Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id 81.75.03136.58565535; Mon, 21 Apr 2014 14:37:57 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s3LIbubL022318; Mon, 21 Apr 2014 14:37:57 -0400 Received: from drake.dyndns.org (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [216.15.114.40]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s3LIbsXb029712 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 21 Apr 2014 14:37:56 -0400 Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1WcJ6I-0003kx-CD; Mon, 21 Apr 2014 14:37:54 -0400 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 03/11] emacs: Fix coding system in `notmuch-show-view-raw-message' Date: Mon, 21 Apr 2014 14:37:40 -0400 Message-Id: <1398105468-14317-4-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1398105468-14317-1-git-send-email-amdragon@mit.edu> References: <1398105468-14317-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsUixG6nrtuaGhpscPCStcX1mzOZHRg9nq26 xRzAGMVlk5Kak1mWWqRvl8CV8f/McZaCXp6KU5/XsTYw9nB1MXJySAiYSDze84YRwhaTuHBv PVsXIxeHkMBsJokJJxYyQjgbGSUWfPjCDOHcYZKYsugvE4Qzl1Fi2e0F7CD9bAIaEtv2Lweb JSIgLbHz7mzWLkYODmYBNYk/XSogYWGBIIkJV+6zgdgsAqoSH779ByvnFXCQuHv7MzPEGXIS J49NZgWxOQUcJdpWvwQbLwRUs2HvGqYJjPwLGBlWMcqm5Fbp5iZm5hSnJusWJyfm5aUW6Rrr 5WaW6KWmlG5iBIUNpyTfDsavB5UOMQpwMCrx8BYYhQYLsSaWFVfmHmKU5GBSEuV9FQUU4kvK T6nMSCzOiC8qzUktPsQowcGsJMK7XhMox5uSWFmVWpQPk5LmYFES531rbRUsJJCeWJKanZpa kFoEk5Xh4FCS4L2ZAtQoWJSanlqRlplTgpBm4uAEGc4DNPwiSA1vcUFibnFmOkT+FKOilDhv G0hCACSRUZoH1wuL61eM4kCvCPO2gFTxAFMCXPcroMFMQIOfbAkBGVySiJCSamCc8nqqrltH V57UL9P9RwJua5dd9OFNmh73ZoHBUbk18jzJ/hoar5Nb03x97HZ9TBTa9XG/ttKD2iPi839e EdFLuVuRzSVW07Y2fmtQTLftfaWkbxKv3/U8bXgpPe+P8u35jKW+AbveTmRkkuiTVn69+qnS JQfbf5pcVVw7XvCkdu/bs7PKYYYSS3FGoqEWc1FxIgAsebxFxgIAAA== 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: Mon, 21 Apr 2014 18:38:05 -0000 This fixes the known-broken test of viewing 8bit messages added by the previous commit. --- emacs/notmuch-show.el | 5 +++-- test/T455-emacs-charsets.sh | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 949ac09..2b225df 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1748,11 +1748,12 @@ (defun notmuch-show-previous-open-message () (notmuch-show-message-adjust)) (defun notmuch-show-view-raw-message () - "View the file holding the current message." + "View the original source of the current message." (interactive) (let* ((id (notmuch-show-get-message-id)) (buf (get-buffer-create (concat "*notmuch-raw-" id "*")))) - (call-process notmuch-command nil buf nil "show" "--format=raw" id) + (let ((coding-system-for-read 'no-conversion)) + (call-process notmuch-command nil buf nil "show" "--format=raw" id)) (switch-to-buffer buf) (goto-char (point-min)) (set-buffer-modified-p nil) diff --git a/test/T455-emacs-charsets.sh b/test/T455-emacs-charsets.sh index a42a1d2..3078f9c 100755 --- a/test/T455-emacs-charsets.sh +++ b/test/T455-emacs-charsets.sh @@ -128,7 +128,6 @@ EOF test_expect_equal_file OUTPUT EXPECTED test_begin_subtest "8bit text message are not decoded when viewing" -test_subtest_known_broken test_emacs '(notmuch-show "id:test-plain-8bit@example.com") (notmuch-show-view-raw-message) (test-visible-output "OUTPUT.raw")' -- 1.9.1