##
## Support for PGP
##

SHELL=/bin/sh
MAILDIR=$HOME/Mail
PMDIR=$HOME/.procmail
JFDIR=/usr/lib/junkfilter
JFUSERDIR=$HOME/.procmail/junkfilter
LOGFILE=$PMDIR/log
LOGABSTRACT=no
VERBOSE=no

: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"
}

# Call the junkfilter routines
INCLUDERC=$JFDIR/junkfilter

# Take action if junkfilter caught a junkmail.
:0 wf: junk.lock
* JFEXP ?? .
| formail \
         -i "X-Fkey: junk" -i "X-junkfilter: $JFVERSION" \
         -i "X-Spammer: $JFEXP"


