Fix display of inline SVG images in Rmail

* lisp/mail/rmailmm.el (rmail-mime-set-bulk-data): Support
Content-type of "svg+xml" if SVG images are supported,
This commit is contained in:
Eli Zaretskii 2026-05-24 09:41:26 +03:00
parent 4c55d04ebe
commit 4d87d203cf

View file

@ -842,8 +842,11 @@ directly."
((string-match "text/" content-type)
(setq type 'text))
((string-match "image/\\(.*\\)" content-type)
(setq type (image-supported-file-p
(concat "." (match-string 1 content-type))))
(let ((fnext (match-string 1 content-type)))
;; Ask about SVG support when Content-type is image/svg+xml.
(if (equal fnext "svg+xml")
(setq fnext "svg"))
(setq type (image-supported-file-p (concat "." fnext))))
(when (and type
rmail-mime-show-images
(not (eq rmail-mime-show-images 'button))