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 917BB429E28 for ; Fri, 27 May 2011 03:27:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.921 X-Spam-Level: X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5 tests=[NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_MED=-2.3] 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 8DejPFcYg7T3 for ; Fri, 27 May 2011 03:27:49 -0700 (PDT) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 17C01429E2B for ; Fri, 27 May 2011 03:27:49 -0700 (PDT) Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) by earth-doxen-postvirus (Postfix) with ESMTP id A003266E055B; Fri, 27 May 2011 03:27:47 -0700 (PDT) X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com [98.149.172.122]) (Authenticated sender: jrollins) by earth-doxen-submit (Postfix) with ESMTP id D48E466E04CB; Fri, 27 May 2011 03:27:43 -0700 (PDT) Received: by servo.finestructure.net (Postfix, from userid 1000) id 2712A2B0; Fri, 27 May 2011 03:27:43 -0700 (PDT) From: Jameson Graef Rollins To: notmuch@notmuchmail.org Subject: [PATCH 3/4] emacs: Do not attempt to render arbitrary application parts. Date: Fri, 27 May 2011 03:27:38 -0700 Message-Id: <1306492059-7706-4-git-send-email-jrollins@finestructure.net> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1306492059-7706-3-git-send-email-jrollins@finestructure.net> References: <1306371680-19441-1-git-send-email-jrollins@finestructure.net> <1306492059-7706-1-git-send-email-jrollins@finestructure.net> <1306492059-7706-2-git-send-email-jrollins@finestructure.net> <1306492059-7706-3-git-send-email-jrollins@finestructure.net> 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: Fri, 27 May 2011 10:27:49 -0000 We probably shouldn't have been doing this anyway, but we do it here specifically because we don't want the content of the application/pgp-encrypted parts to be displayed and cluttering the message show. --- emacs/notmuch-show.el | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 2f6be59..aa6ddd1 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -524,6 +524,11 @@ current buffer, if possible." nil)) nil)))) +(defun notmuch-show-insert-part-application/* (msg part content-type nth depth declared-type +) + ;; do not render random "application" parts + (notmuch-show-insert-part-header nth content-type declared-type (plist-get part :filename))) + (defun notmuch-show-insert-part-*/* (msg part content-type nth depth declared-type) ;; This handler _must_ succeed - it is the handler of last resort. (notmuch-show-insert-part-header nth content-type declared-type (plist-get part :filename)) -- 1.7.4.4