diff --git a/mbox2web b/mbox2web index 11ebcc1..4019a68 100755 --- a/mbox2web +++ b/mbox2web @@ -93,6 +93,7 @@ def save_part(msg, disposition): "application/pgp-keys": ".pgp", "application/x-gunzip": ".gz", # that sort of makes sense, but not really "image/jpeg": ".jpg", + "text/x-python": ".py", }[content_type] name = msg.get_param("name") or "(data)" diff --git a/templates/attachment_text_x-python.html b/templates/attachment_text_x-python.html new file mode 100644 index 0000000..1bf579e --- /dev/null +++ b/templates/attachment_text_x-python.html @@ -0,0 +1,8 @@ +