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