Handle application/x-bzip2 attachments

This commit is contained in:
Peter J. Holzer 2019-04-29 21:18:00 +02:00
parent 5294100b2c
commit 2aadb830cd
2 changed files with 10 additions and 0 deletions

View File

@ -64,6 +64,7 @@ def save_part(msg, disposition):
"application/x-perl": ".pl", "application/x-perl": ".pl",
"application/msword": ".doc", "application/msword": ".doc",
"application/ms-tnef": ".ms-tnef", "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
}[content_type] }[content_type]
name = msg.get_param("name") or "(data)" name = msg.get_param("name") or "(data)"

View File

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