Handle application/x-shellscript attachments

This commit is contained in:
Peter J. Holzer 2019-04-29 21:22:03 +02:00
parent 2aadb830cd
commit 54290fb668
2 changed files with 20 additions and 11 deletions

View File

@ -65,6 +65,7 @@ def save_part(msg, disposition):
"application/msword": ".doc",
"application/ms-tnef": ".ms-tnef",
"application/x-bzip2": ".bz2", # more likely tar.bz2, but we can't know without looking into it which we ain't
"application/x-shellscript": ".sh",
}[content_type]
name = msg.get_param("name") or "(data)"

View File

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