# ~/.procmailrc for spam fighting # --pme, 23oct01 MDIR=$HOME/mail CONFIG=$MDIR/procmail # Log everything while I learn procmail: LOGFILE=$MDIR/procmail.log VERBOSE=yes LOGABSTRACT=all # bulk: stranger bcc to me should be ignored: DEFAULT=$MDIR/bulk MAILOK=/var/spool/mail/pme # 1. Friends can interrupt me any time: :0: * ? (formail -x From: | egrep -i -f $CONFIG/friends) $MAILOK # 2. Strangers who send me junk get ignored: :0E: * ? (cat | egrep -i -f $CONFIG/badwords) $MDIR/junk # 3. Other strangers who send explicitly to me should be reviewed weekly: :0: * ? (formail -x To: | egrep -i -f $CONFIG/me) $MDIR/hold # 4. Else no match above, procmail goes to $DEFAULT (bulk)