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