From 2a3e5622f363eaface21759380c8217975764a7d Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 31 Mar 2019 21:50:08 +0200 Subject: [PATCH] Handle ms-tnef attachments Like other attachments, just create a download link, don't try to parse them. --- mbox2web | 1 + templates/attachment_application_ms-tnef.html | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 templates/attachment_application_ms-tnef.html diff --git a/mbox2web b/mbox2web index 0bf2a02..d5d48dd 100755 --- a/mbox2web +++ b/mbox2web @@ -63,6 +63,7 @@ def save_part(msg, disposition): "text/x-c": ".c", "application/x-perl": ".pl", "application/msword": ".doc", + "application/ms-tnef": ".ms-tnef", }[content_type] name = msg.get_param("name") or "(data)" diff --git a/templates/attachment_application_ms-tnef.html b/templates/attachment_application_ms-tnef.html new file mode 100644 index 0000000..dbf4315 --- /dev/null +++ b/templates/attachment_application_ms-tnef.html @@ -0,0 +1,8 @@ +
+
+ application/ms-tnef +
+
+ {{name}} +
+