# .procmailrc - Soeren M Soerries PATH=/bin:/usr/bin:/usr/bin MAILDIR=$HOME/Mail #you'd better make sure it exists # DEFAULT=$MAILDIR/mbox #completely optional LOGFILE=$MAILDIR/.procmail_log #recommended KEYID="0x8C309D7D" #most favored PGP Key ID :0 * ^From:.*gateway@skyper.de /dev/null # cypherpunks Listen :0 * ^TOcypherpunks cypherpunks.inbox #### Begin PGP-Encrypt/PGP-MIME Block #### # encrypted mail already wrapped in PGP-MIME => leave alone # PGP-encrypted mail without PGP-MIME => wrap in PGP-MIME # any PGP-signed Mail and mail without any PGP \ # => encrypt to $KEYID and wrap in PGP-MIME # # Verschluesselte Mail in PGP-MIME => in Ruhe lassen. # Verschluesselte Mail ohne PGP-MIME => in PGP-MIME verpacken. # Mail ohne PGP und PGP-signed Mail \ # => an $KEYID verschluesseln und PGP-MIME verpacken. :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 fBbw * ^-----BEGIN PGP SIGNED MESSAGE----- * ^-----BEGIN PGP SIGNATURE----- * ^-----END PGP SIGNATURE----- | pgp -fea $KEYID | formail \ -i "Content-Type: application/pgp; format=text; x-action=encrypt" :0 fBbw * !^-----BEGIN PGP | pgp -fea $KEYID :0 fBw * ^-----BEGIN PGP | formail \ -i "Content-Type: application/pgp; format=text; x-action=encrypt" } # Mail already wrapped in (PGP-?)MIME but not yet encoded: # This first rule keeps MIME-multipart but goes without encryption. Any help? # The second rule encrypts your mail destroying MIME-multipart. Use either one. :0 * ^Content-Type:.*(application/pgp|message/) #* ^Content-Type:.*(application/pgp|message/|multipart/) { :0 fBbw * !^-----BEGIN PGP MESSAGE | pgp -fea $KEYID :0 fBw * ^-----BEGIN PGP MESSAGE | formail \ -i "Content-Type: application/pgp; format=text; x-action=encrypt" } ##### End PGP-Encrypt/PGP-MIME Block #####