Implement attachment text/x-perl

This commit is contained in:
Peter J. Holzer 2019-05-12 23:11:21 +02:00
parent 10fc5e2f61
commit 55a1a1df83
2 changed files with 9 additions and 0 deletions

View File

@ -100,6 +100,7 @@ def save_part(msg, disposition):
"text/x-c++src": ".c++",
"application/x-compressed-tar": ".tar.gz",
"application/vnd.oasis.opendocument.text": ".odt",
"text/x-perl": ".pl",
}[content_type]
name = msg.get_param("name") or "(data)"

View File

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