Implement attachment application/pgp-signature

A detached signature doesn't make much sense in an email, but may happen
because of improper quoting. Or somebody might really want to send a
signature separate from the signed file.
This commit is contained in:
Peter J. Holzer 2019-05-12 23:17:17 +02:00
parent 55a1a1df83
commit 647e93afd5
2 changed files with 10 additions and 0 deletions

View File

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

View File

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