From 2aadb830cd269783dd7dc236fd17667bf0f7de72 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Mon, 29 Apr 2019 21:18:00 +0200 Subject: [PATCH] Handle application/x-bzip2 attachments --- mbox2web | 1 + templates/attachment_application_x-bzip2.html | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 templates/attachment_application_x-bzip2.html diff --git a/mbox2web b/mbox2web index 19c4f7a..ceae0cd 100755 --- a/mbox2web +++ b/mbox2web @@ -64,6 +64,7 @@ def save_part(msg, disposition): "application/x-perl": ".pl", "application/msword": ".doc", "application/ms-tnef": ".ms-tnef", + "application/x-bzip2": ".bz2", # more likely tar.bz2, but we can't know without looking into it which we ain't }[content_type] name = msg.get_param("name") or "(data)" diff --git a/templates/attachment_application_x-bzip2.html b/templates/attachment_application_x-bzip2.html new file mode 100644 index 0000000..638a4ff --- /dev/null +++ b/templates/attachment_application_x-bzip2.html @@ -0,0 +1,9 @@ +
+
+ application/x-bzip2 +
+
+ {{name}} +
+
+