From bda0750cc38b14d70cd0299cf83c6a04f98ffc61 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 14 Jul 2016 12:20:31 +0200 Subject: [PATCH 1/1] fix up gpg mime part description --- .mutt/sendmail-checks.d/pgp-mime-sig-description | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .mutt/sendmail-checks.d/pgp-mime-sig-description diff --git a/.mutt/sendmail-checks.d/pgp-mime-sig-description b/.mutt/sendmail-checks.d/pgp-mime-sig-description new file mode 100755 index 0000000..45aa0e7 --- /dev/null +++ b/.mutt/sendmail-checks.d/pgp-mime-sig-description @@ -0,0 +1,15 @@ +#!/bin/sh +# +# pgp-mime-sig-description +# +# Update the PGP MIME signature description meta data +# +# Copyright © 2016 martin f. krafft +# Released under the terms of the Artistic Licence 2.0 +# +set -eu + +MIME_HEADER="Content-Type: application\/pgp-signature" +DESCRIPTION="Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)" +sed -i -e "/^${MIME_HEADER}/s/signature.asc/digital_signature_gpg.asc/; + /^${MIME_HEADER}/aContent-Description: $DESCRIPTION" "$1" -- 2.39.5