1 Return-Path: <jrollins@servo.finestructure.net>
\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 917BB429E28
\r
6 for <notmuch@notmuchmail.org>; Fri, 27 May 2011 03:27:49 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5
\r
12 tests=[NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_MED=-2.3]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id 8DejPFcYg7T3 for <notmuch@notmuchmail.org>;
\r
17 Fri, 27 May 2011 03:27:49 -0700 (PDT)
\r
18 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu
\r
20 by olra.theworths.org (Postfix) with ESMTP id 17C01429E2B
\r
21 for <notmuch@notmuchmail.org>; Fri, 27 May 2011 03:27:49 -0700 (PDT)
\r
22 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])
\r
23 by earth-doxen-postvirus (Postfix) with ESMTP id A003266E055B;
\r
24 Fri, 27 May 2011 03:27:47 -0700 (PDT)
\r
25 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new
\r
26 Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com
\r
27 [98.149.172.122]) (Authenticated sender: jrollins)
\r
28 by earth-doxen-submit (Postfix) with ESMTP id D48E466E04CB;
\r
29 Fri, 27 May 2011 03:27:43 -0700 (PDT)
\r
30 Received: by servo.finestructure.net (Postfix, from userid 1000)
\r
31 id 2712A2B0; Fri, 27 May 2011 03:27:43 -0700 (PDT)
\r
32 From: Jameson Graef Rollins <jrollins@finestructure.net>
\r
33 To: notmuch@notmuchmail.org
\r
34 Subject: [PATCH 3/4] emacs: Do not attempt to render arbitrary application
\r
36 Date: Fri, 27 May 2011 03:27:38 -0700
\r
37 Message-Id: <1306492059-7706-4-git-send-email-jrollins@finestructure.net>
\r
38 X-Mailer: git-send-email 1.7.4.4
\r
39 In-Reply-To: <1306492059-7706-3-git-send-email-jrollins@finestructure.net>
\r
40 References: <1306371680-19441-1-git-send-email-jrollins@finestructure.net>
\r
41 <1306492059-7706-1-git-send-email-jrollins@finestructure.net>
\r
42 <1306492059-7706-2-git-send-email-jrollins@finestructure.net>
\r
43 <1306492059-7706-3-git-send-email-jrollins@finestructure.net>
\r
44 X-BeenThere: notmuch@notmuchmail.org
\r
45 X-Mailman-Version: 2.1.13
\r
47 List-Id: "Use and development of the notmuch mail system."
\r
48 <notmuch.notmuchmail.org>
\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
52 List-Post: <mailto:notmuch@notmuchmail.org>
\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
56 X-List-Received-Date: Fri, 27 May 2011 10:27:49 -0000
\r
58 We probably shouldn't have been doing this anyway, but we do it here
\r
59 specifically because we don't want the content of the
\r
60 application/pgp-encrypted parts to be displayed and cluttering the
\r
63 emacs/notmuch-show.el | 5 +++++
\r
64 1 files changed, 5 insertions(+), 0 deletions(-)
\r
66 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
67 index 2f6be59..aa6ddd1 100644
\r
68 --- a/emacs/notmuch-show.el
\r
69 +++ b/emacs/notmuch-show.el
\r
70 @@ -524,6 +524,11 @@ current buffer, if possible."
\r
74 +(defun notmuch-show-insert-part-application/* (msg part content-type nth depth declared-type
\r
76 + ;; do not render random "application" parts
\r
77 + (notmuch-show-insert-part-header nth content-type declared-type (plist-get part :filename)))
\r
79 (defun notmuch-show-insert-part-*/* (msg part content-type nth depth declared-type)
\r
80 ;; This handler _must_ succeed - it is the handler of last resort.
\r
81 (notmuch-show-insert-part-header nth content-type declared-type (plist-get part :filename))
\r