Implement attachment text/x-java

This commit is contained in:
Peter J. Holzer 2019-05-12 22:37:24 +02:00
parent 709c87658b
commit 9b49c740c6
2 changed files with 9 additions and 0 deletions

View File

@ -94,6 +94,7 @@ def save_part(msg, disposition):
"application/x-gunzip": ".gz", # that sort of makes sense, but not really "application/x-gunzip": ".gz", # that sort of makes sense, but not really
"image/jpeg": ".jpg", "image/jpeg": ".jpg",
"text/x-python": ".py", "text/x-python": ".py",
"text/x-java": ".java",
}[content_type] }[content_type]
name = msg.get_param("name") or "(data)" name = msg.get_param("name") or "(data)"

View File

@ -0,0 +1,8 @@
<div class="partouter">
<div class="partheader">
text/x-c
</div>
<div class="partinner">
<a href="{{url}}">{{name}}</a>
</div>
</div>