Mutt: Decrypting inline gpg format directly

Heinz Diehl htd at fritha.org
Fri Jul 18 20:59:27 CEST 2014


On 18.07.2014, The Fuzzy Whirlpool Thunderstorm wrote: 

> I wonder if Mutt can be configured to decrypt inline pgp messages
> automatically, without piping the attachment to `gpg --decrypt`.

You can't. Put this into your .procmailrc. It'll transform your inline
pgp mails accordingly:


:0
* !^Content-Type: multipart/encrypted
{
       :0 fBw
       * ^-----BEGIN PGP MESSAGE-----
       * ^-----END PGP MESSAGE-----
       | formail \
          -i "Content-Type: application/pgp; format=text;
	  x-action=encrypt"
}

:0
* !^Content-Type: multipart/
{
       :0 fBw
       * ^-----BEGIN PGP SIGNED MESSAGE-----
       * ^-----BEGIN PGP SIGNATURE-----
* ^-----END PGP SIGNATURE-----
       | formail \
          -i "Content-Type: application/pgp; format=text;
	  x-action=sign"
}




More information about the Gnupg-users mailing list