Handle application/x-bzip2 attachments
This commit is contained in:
parent
5294100b2c
commit
2aadb830cd
1
mbox2web
1
mbox2web
|
@ -64,6 +64,7 @@ def save_part(msg, disposition):
|
|||
"application/x-perl": ".pl",
|
||||
"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
|
||||
}[content_type]
|
||||
|
||||
name = msg.get_param("name") or "(data)"
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<div class="partouter">
|
||||
<div class="partheader">
|
||||
application/x-bzip2
|
||||
</div>
|
||||
<div class="partinner">
|
||||
<a href="{{url}}">{{name}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue