Implement attachment application/vnd.oasis.opendocument.text

This commit is contained in:
Peter J. Holzer 2019-05-12 23:06:52 +02:00
parent c9ccb38eb9
commit 10fc5e2f61
2 changed files with 33 additions and 23 deletions

View File

@ -99,6 +99,7 @@ def save_part(msg, disposition):
"text/x-patch": ".patch",
"text/x-c++src": ".c++",
"application/x-compressed-tar": ".tar.gz",
"application/vnd.oasis.opendocument.text": ".odt",
}[content_type]
name = msg.get_param("name") or "(data)"

View File

@ -0,0 +1,9 @@
<div class="partouter">
<div class="partheader">
application/vnd.oasis.opendocument.text
</div>
<div class="partinner">
<a href="{{url}}">{{name}}</a>
</div>
</div>