Mutt and old-style encrypted and signed messages

Andreas Siegert afxml@atsec.com
Tue Sep 25 13:39:02 2001


Quoting David K. Trudgett (dkt@registriesltd.com.au) on Tue, Sep 25, 2001 at 05:19:43AM +0200:


> that, since that is the way it should be. But how do I configure Mutt
> so that it will also automatically invoke GnuPG to decrypt/verify
> old-style messages received? At the present time, if I receive such a
> message, I have to save the message to a file and manually run "gpg"
> to be able to read the contents.
Found that on a mailing list ages ago for my .procmailrc: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # ---------------------------------------------------------------------- # PGP to PGP-MIME conversion # Add a "Content-Type: application/pgp" header so Mutt will know the # mail is encrypted.
:0
* !^Content-Type: message/ * !^Content-Type: multipart/ * !^Content-Type: application/pgp { :0 fBw * ^-----BEGIN PGP MESSAGE----- * ^-----END PGP MESSAGE----- | formail \ -i "Content-Type: application/pgp; format=text; x-action=encrypt" :0 fBw * ^-----BEGIN PGP SIGNED MESSAGE----- * ^-----BEGIN PGP SIGNATURE----- * ^-----END PGP SIGNATURE----- | formail \ -i "Content-Type: application/pgp; format=text; x-action=sign" } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cheers afx -- atsec information security GmbH Phone: +49-89-44249830 Steinstrasse 68 Fax: +49-89-44249831 D-81667 Muenchen, Germany WWW: www.atsec.com May the Source be with you!