From f543dbc5c87b1bea134ef52b1c5a2b1d65fc0b8f Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 31 Mar 2019 21:15:31 +0200 Subject: [PATCH] Handle (old style) MS-Word attachments --- mbox2web | 1 + templates/attachment_application_msword.html | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 templates/attachment_application_msword.html diff --git a/mbox2web b/mbox2web index 1f15df4..0bf2a02 100755 --- a/mbox2web +++ b/mbox2web @@ -62,6 +62,7 @@ def save_part(msg, disposition): "image/gif": ".gif", "text/x-c": ".c", "application/x-perl": ".pl", + "application/msword": ".doc", }[content_type] name = msg.get_param("name") or "(data)" diff --git a/templates/attachment_application_msword.html b/templates/attachment_application_msword.html new file mode 100644 index 0000000..2634f4d --- /dev/null +++ b/templates/attachment_application_msword.html @@ -0,0 +1,8 @@ +
+
+ application/msword +
+
+ {{name}} +
+