From: martin f. krafft Date: Thu, 14 Jul 2016 10:20:31 +0000 (+0200) Subject: fix up gpg mime part description X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/bda0750cc38b14d70cd0299cf83c6a04f98ffc61?ds=sidebyside;hp=60643394776a7012dffdf5c195991e3cc1322394 fix up gpg mime part 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"