From bdb5842d759bec9cda272866671c550a05397af8 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Mon, 20 May 2019 23:16:30 +0200 Subject: [PATCH] Handle image/svg+xml attachments --- mbox2web | 1 + templates/attachment_image_svg+xml.html | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 templates/attachment_image_svg+xml.html diff --git a/mbox2web b/mbox2web index 902cae5..ac973a1 100755 --- a/mbox2web +++ b/mbox2web @@ -102,6 +102,7 @@ def save_part(msg, disposition): "application/vnd.oasis.opendocument.text": ".odt", "text/x-perl": ".pl", "application/pgp-signature": ".pgp", + "image/svg+xml": ".svg", }[content_type] name = msg.get_param("name") or "(data)" diff --git a/templates/attachment_image_svg+xml.html b/templates/attachment_image_svg+xml.html new file mode 100644 index 0000000..6195707 --- /dev/null +++ b/templates/attachment_image_svg+xml.html @@ -0,0 +1,8 @@ +
1000 +
+ image/svg+xml +
+
+ {{name}} +
+