Implement attachment text/x-python
This commit is contained in:
parent
f3bdaae445
commit
709c87658b
1
mbox2web
1
mbox2web
|
@ -93,6 +93,7 @@ def save_part(msg, disposition):
|
|||
"application/pgp-keys": ".pgp",
|
||||
"application/x-gunzip": ".gz", # that sort of makes sense, but not really
|
||||
"image/jpeg": ".jpg",
|
||||
"text/x-python": ".py",
|
||||
}[content_type]
|
||||
|
||||
name = msg.get_param("name") or "(data)"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<div class="partouter">
|
||||
<div class="partheader">
|
||||
text/x-python
|
||||
</div>
|
||||
<div class="partinner">
|
||||
<a href="{{url}}">{{name}}</a>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue