1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
# junkfilter
# a junk email filter system for procmail
# Copyright 1997-2002 Gregory Sutter <gsutter@zer0.org>
#
# $Id: procmailrc.sample,v 2.6 2002/04/21 03:22:16 gsutter Exp $
#
# Please read the file "README" and the page
# http://junkfilter.zer0.org/ before using junkfilter.
# This is a simple sample .procmailrc that calls junkfilter.
# It will work as-is, but you may want to change $PMDIR and $JFDIR.
SHELL=/bin/sh
PATH="$HOME/bin:/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin:/usr/sbin"
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
JFDIR=$HOME/.procmail/junkfilter
DEFAULT="inbox"
LOGFILE=$PMDIR/log
LOGABSTRACT=all
VERBOSE=no
# Procmail mailing list
:0 :
* ^Resent-From:.*procmail@Informatik.RWTH-Aachen.DE
| formail -i "X-Fkey: procmail" >> procmail
# Call junkfilter
INCLUDERC=$JFDIR/junkfilter
# Take action if junkfilter caught a junkmail.
:0
* JFEXP ?? .
{
# This is for the whitelist. The message is tagged with an
# X-Spammer: header, but is not filtered away.
:0 f
* JFSTATUS ?? 1
| formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP"
# Non-whitelist messages are tagged and sent to a junk mailbox.
:0 E :
| formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP" \
>> junkmail
}
# Catches everything else.
:0 :
inbox
# EOF procmailrc.sample
|