Handle application/x-shellscript attachments
This commit is contained in:
parent
2aadb830cd
commit
54290fb668
1
mbox2web
1
mbox2web
|
@ -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)"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<div class="partouter">
|
||||
<div class="partheader">
|
||||
application/x-shellscript
|
||||
</div>
|
||||
<div class="partinner">
|
||||
<a href="{{url}}">{{name}}</a>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue