# junkfilter # a junk e-mail filter system for procmail # Copyright 1997-98, Gregory Sutter # # $Id: junkfilter.opt,v 2.2 1998/10/15 17:53:26 gsutter Exp $ # # Please read the file "junkfilter.readme" and the page # http://www.pobox.com/~gsutter/junkfilter/ before using # junkfilter. junkfilter is copyright 1997-98 Gregory # Sutter and is licensed under the terms of the GNU # General Public License, version 2. See the file # junkfilter.readme for details. # Opt section, for options specified in junkfilter.config JFSEC=Opt # Is the recipient's email address in the To: or Cc: field? :0 * $ $JF_OPT_NOTRECIP^0 { :0 * ! ^(To|Cc):.*$JFMAILADDRESS { JFMATCH="$JFSEC: Recipient address not in To: or Cc: header" INCLUDERC=$JFDIR/junkfilter.match } } # To: or Cc: header with more than 60 recipients. :0 * $ $JF_OPT_60RECIP^0 { :0 * ^TO_.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.*,.*@.* { JFMATCH="$JFSEC: Sent to more than 60 people" INCLUDERC=$JFDIR/junkfilter.match } } # X-UIDL header :0 * $ $JF_OPT_XUIDL^0 { :0 * ^X-UIDL: { JFMATCH="$JFSEC: X-UIDL header present" INCLUDERC=$JFDIR/junkfilter.match } } # msn.com is a spammer haven and I'm sick of it. :0 * $ $JF_OPT_MSN^0 { :0 * ^Received:.*\.msn\.com\> { JFMATCH="$JFSEC: Received from msn.com" INCLUDERC=$JFDIR/junkfilter.match } } # this is only used if you've elected to send back junk which passes # the filter. it is the only recipe in junkfilter which touches the mail. :0 * $ $JF_OPT_SENDBACK^0 { :0 f | $JFFORMAIL -i "X-jf: $JFVERSION, 1:$JF_ONE,2:$JF_TWO,3:$JF_THREE,4:$JF_FOUR,ad:$JF_ADDRESSES,bo:$JF_BODYCHK,di:$JF_DIALUPS,do:$JF_DOMAINS,he:$JF_HEADERS,ip:$JF_IP,us:$JF_USER" } JFSEC # EOF junkfilter.opt