[PATCH 5/5] emacs/reply: restrict what mime types are inlined by default

Subject:[PATCH 5/5] emacs/reply: restrict what mime types are inlined by default

Date:Sat, 19 Mar 2022 07:07:54 -0300

To:notmuch@notmuchmail.org

Cc:

From:David Bremner


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 <<EOF > EXPECTED
-- 
2.35.1

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: