emacs: Do not attempt to render arbitrary application parts.
authorJameson Graef Rollins <jrollins@finestructure.net>
Fri, 27 May 2011 10:27:38 +0000 (03:27 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 27 May 2011 23:22:00 +0000 (16:22 -0700)
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

index 2f6be597b410eb61cf34764f31b82509d0d204d8..aa6ddd1a0ac6130969ee65204b84191c76622880 100644 (file)
@@ -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))