From 0db91aaa5f0f49f1bb394e55cbe525ba86c9e1ee Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 31 Mar 2019 20:51:52 +0200 Subject: [PATCH] Handle C attachments --- mbox2web | 1 + templates/attachment_text_x-c.html | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 templates/attachment_text_x-c.html diff --git a/mbox2web b/mbox2web index 3f6f6c8..dd60a0d 100755 --- a/mbox2web +++ b/mbox2web @@ -60,6 +60,7 @@ def save_part(msg, disposition): "text/plain": ".txt", "application/x-gzip": ".gz", # more likely tar.gz, but we can't know without looking into it which we ain't "image/gif": ".gif", + "text/x-c": ".c", }[content_type] name = msg.get_param("name") or "(data)" diff --git a/templates/attachment_text_x-c.html b/templates/attachment_text_x-c.html new file mode 100644 index 0000000..72079ff --- /dev/null +++ b/templates/attachment_text_x-c.html @@ -0,0 +1,8 @@ +
+
+ text/x-c +
+
+ {{name}} +
+