From 90a7c1af368a527700dcde9b0dcbd760afc7bd92 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 19 Mar 2022 07:07:54 -0300 Subject: [PATCH] emacs/reply: restrict what mime types are inlined by default Apply the previously factored-out function used by notmuch-show. --- emacs/notmuch-mua.el | 4 +++- test/T453-emacs-reply.sh | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index c679373b..60801f4b 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -316,7 +316,9 @@ Typically this is added to `notmuch-mua-send-hook'." ;; text. (notmuch-show-process-crypto process-crypto) ;; Don't indent multipart sub-parts. - (notmuch-show-indent-multipart nil)) + (notmuch-show-indent-multipart nil) + ;; Stop certain mime types from being inlined + (mm-inline-override-types (notmuch--inline-override-types))) ;; We don't want sigstatus buttons (an information leak and usually wrong anyway). (cl-letf (((symbol-function 'notmuch-crypto-insert-sigstatus-button) #'ignore) ((symbol-function 'notmuch-crypto-insert-encstatus-button) #'ignore)) diff --git a/test/T453-emacs-reply.sh b/test/T453-emacs-reply.sh index 5d6c5309..c26c4473 100755 --- a/test/T453-emacs-reply.sh +++ b/test/T453-emacs-reply.sh @@ -11,7 +11,6 @@ test_require_emacs add_email_corpus attachment test_begin_subtest "tar not inlined by default" -test_subtest_known_broken test_emacs '(notmuch-mua-new-reply "id:874llc2bkp.fsf@curie.anarc.at") (test-visible-output "OUTPUT.raw")' cat < EXPECTED -- 2.43.0