Implement attachment application/x-compressed-tar
This commit is contained in:
parent
b5316d056e
commit
c9ccb38eb9
2
mbox2web
2
mbox2web
|
@ -98,6 +98,7 @@ def save_part(msg, disposition):
|
|||
"application/x-sh": ".sh",
|
||||
"text/x-patch": ".patch",
|
||||
"text/x-c++src": ".c++",
|
||||
"application/x-compressed-tar": ".tar.gz",
|
||||
}[content_type]
|
||||
|
||||
name = msg.get_param("name") or "(data)"
|
||||
|
@ -364,6 +365,7 @@ def render_body(msg, extra=None):
|
|||
"multipart/related": render_multipart_related,
|
||||
"application/x-java-vm": render_application_octet_stream,
|
||||
"image/jpeg": render_image_jpeg,
|
||||
"application/x-compressed-tar": render_application_octet_stream,
|
||||
}
|
||||
content_type = msg.get_content_type()
|
||||
content_disposition = msg.get_content_disposition()
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<div class="partouter">
|
||||
<div class="partheader">
|
||||
application/x-compressed-tar
|
||||
</div>
|
||||
<div class="partinner">
|
||||
<a href="{{url}}">{{name}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue