Implement attachment application/x-sh
This commit is contained in:
parent
9b49c740c6
commit
308a34e6ca
1
mbox2web
1
mbox2web
|
@ -95,6 +95,7 @@ def save_part(msg, disposition):
|
||||||
"image/jpeg": ".jpg",
|
"image/jpeg": ".jpg",
|
||||||
"text/x-python": ".py",
|
"text/x-python": ".py",
|
||||||
"text/x-java": ".java",
|
"text/x-java": ".java",
|
||||||
|
"application/x-sh": ".sh",
|
||||||
}[content_type]
|
}[content_type]
|
||||||
|
|
||||||
name = msg.get_param("name") or "(data)"
|
name = msg.get_param("name") or "(data)"
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
<div class="partouter">
|
||||||
|
<div class="partheader">
|
||||||
|
application/x-sh
|
||||||
|
</div>
|
||||||
|
<div class="partinner">
|
||||||
|
<a href="{{url}}">{{name}}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
Loading…
Reference in New Issue