Handle image/svg+xml attachments

This commit is contained in:
Peter J. Holzer 2019-05-20 23:16:30 +02:00
parent 5e96a73744
commit bdb5842d75
2 changed files with 9 additions and 0 deletions

View File

@ -102,6 +102,7 @@ def save_part(msg, disposition):
"application/vnd.oasis.opendocument.text": ".odt",
"text/x-perl": ".pl",
"application/pgp-signature": ".pgp",
"image/svg+xml": ".svg",
}[content_type]
name = msg.get_param("name") or "(data)"

View File

@ -0,0 +1,8 @@
<div class="partouter"> 1000
<div class="partheader">
image/svg+xml
</div>
<div class="partinner">
<a href="{{url}}">{{name}}</a>
</div>
</div>