From 308a34e6cab3acfaacf9b8e440b7a5842f936519 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 12 May 2019 22:41:35 +0200 Subject: [PATCH] Implement attachment application/x-sh --- mbox2web | 1 + templates/attachment_application_x-sh.html | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 templates/attachment_application_x-sh.html diff --git a/mbox2web b/mbox2web index d1fcdf1..b20e62c 100755 --- a/mbox2web +++ b/mbox2web @@ -95,6 +95,7 @@ def save_part(msg, disposition): "image/jpeg": ".jpg", "text/x-python": ".py", "text/x-java": ".java", + "application/x-sh": ".sh", }[content_type] name = msg.get_param("name") or "(data)" diff --git a/templates/attachment_application_x-sh.html b/templates/attachment_application_x-sh.html new file mode 100644 index 0000000..6ee602f --- /dev/null +++ b/templates/attachment_application_x-sh.html @@ -0,0 +1,8 @@ +
+
+ application/x-sh +
+
+ {{name}} +
+