From 709c87658bf0ddefb36c8c6adf7c76d468081e9b Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 12 May 2019 22:18:55 +0200 Subject: [PATCH] Implement attachment text/x-python --- mbox2web | 1 + templates/attachment_text_x-python.html | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 templates/attachment_text_x-python.html diff --git a/mbox2web b/mbox2web index 11ebcc1..4019a68 100755 --- a/mbox2web +++ b/mbox2web @@ -93,6 +93,7 @@ def save_part(msg, disposition): "application/pgp-keys": ".pgp", "application/x-gunzip": ".gz", # that sort of makes sense, but not really "image/jpeg": ".jpg", + "text/x-python": ".py", }[content_type] name = msg.get_param("name") or "(data)" diff --git a/templates/attachment_text_x-python.html b/templates/attachment_text_x-python.html new file mode 100644 index 0000000..1bf579e --- /dev/null +++ b/templates/attachment_text_x-python.html @@ -0,0 +1,8 @@ +
+
+ text/x-python +
+
+ {{name}} +
+