From 647e93afd553091718e5b894dcb0d1f17b9dd876 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 12 May 2019 23:17:17 +0200 Subject: [PATCH] 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. --- mbox2web | 1 + templates/attachment_application_pgp-signature.html | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 templates/attachment_application_pgp-signature.html diff --git a/mbox2web b/mbox2web index d83b6a1..7f03952 100755 --- a/mbox2web +++ b/mbox2web @@ -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)" diff --git a/templates/attachment_application_pgp-signature.html b/templates/attachment_application_pgp-signature.html new file mode 100644 index 0000000..bfe54d4 --- /dev/null +++ b/templates/attachment_application_pgp-signature.html @@ -0,0 +1,9 @@ +
+
+ application/pgp-signature +
+
+ {{name}} +
+
+