]> git.cworth.org Git - notmuch/commitdiff
emacs/reply: restrict what mime types are inlined by default
authorDavid Bremner <david@tethera.net>
Sat, 19 Mar 2022 10:07:54 +0000 (07:07 -0300)
committerDavid Bremner <david@tethera.net>
Mon, 16 May 2022 10:12:47 +0000 (07:12 -0300)
Apply the previously factored-out function used by notmuch-show.

emacs/notmuch-mua.el
test/T453-emacs-reply.sh

index c679373b175955092858c7bfe8366a4aa088c91e..60801f4be7d331269a578599c00abc2c0cc5c831 100644 (file)
@@ -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))
index 5d6c5309095c8c3ed4c97744336093d61ecb8c11..c26c4473019ca8a6d47f3d2191e5157c5a975792 100755 (executable)
@@ -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