[lionel@mamane.lu: Re: Mutt and old-style encrypted and signed messages]]

David K. Trudgett dkt@registriesltd.com.au
Tue Sep 25 09:25:02 2001

For those who are interested, please see Lionel Mamane's reply below.


David Trudgett

----- Forwarded message from Lionel Elie Mamane <lionel@mamane.lu> -----

Date: Tue, 25 Sep 2001 07:37:52 +0200
From: Lionel Elie Mamane <lionel@mamane.lu>
To: "David K. Trudgett" <dkt@registriesltd.com.au>
Subject: Re: Mutt and old-style encrypted and signed messages

On Tue, Sep 25, 2001 at 02:54:14PM +1000, David K. Trudgett wrote:

> > Many of you who use Mutt will no doubt be aware that it takes the
> > OpenPGP/MIME route to message encryption. Fine. I have no problem with
> > 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?
Straight from the FAQ: Add the following lines to your ~/.procmailrc (you are using procmail, aren't you?): ------------------------------ ## ## PGP ##
* !^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" } ------------------------------ For users of maildrop, "Mark Weinem" <mark.weinem@unidui.uni-duisburg.de> suggests the following recipe: ------------------------------ BPGPM="-----BEGIN PGP MESSAGE-----" EPGPM="-----END PGP MESSAGE-----" BPGPS="-----BEGIN PGP SIGNATURE-----" EPGPS="-----END PGP SIGNATURE-----" if (!/^Content-Type: message/ && !/^Content-Type: multipart/ \ && !/^Content-Type: application\/pgp/) { if (/^$BPGPM/:b && /^$EPGPM/:b) xfilter "reformail -A 'Content-Type: application/pgp; format=text; \ x-action=encrypt'" if (/^$BPGPS/:b && /^$EPGPS/:b) xfilter "reformail -A 'Content-Type: application/pgp; format=text; \ x-action=sign'" } ------------------------------ -- Lionel Elie Mamane RFC 1991 (PGP 2.x) 2048 bits Key Fingerprint (KeyID: 20C897E9): 85CF 986F 263E 8CD0 80FD 4B8C F5F9 C17D OpenPGP DH/DSS 4096/1024 Key Fingerprint (KeyID: 3E7B4B73): 9DAD 3131 3ADA F50B D096 002A B1C4 7317 3E7B 4B73 ----- End forwarded message -----