# junkfilter # a junk email filter system for procmail # Copyright 1997-2001 Gregory Sutter # # $Id: junkfilter.bodychk,v 2.16 2001/05/28 20:10:50 gsutter Exp $ # # Please read the file "README" and the page # http://junkfilter.zer0.org/ before using junkfilter. # Is there a listed phrase in the body of the message? JFSEC="bodychk" JFBADJ="(best|(bigg?|hott?|low|new)(est)?)" JFBAPOL="(pardon|excuse|app?ologize|sorry)( for| about)?" JFBCARD="(Visa|Mastercard|Master Card|Master Charge|Mastercharge|M/C|MC|AMEX|American Express|Discover)" JFBMAIL="((e-? ?)?mail(ing)?|messag(e|ing)|info(rmation)?)(ed|s)?" JFBLIST="($JFBPOSS )?($JFBMAIL )?list" JFBPNUM="((\+?1)?[-( ]?[0-9][0-9][0-9][-) ]?[0-9][0-9][0-9][- ]?[0-9][0-9][0-9][0-9])" JFBPOSS="(a(ll)?|any|future|my|y?our|the|this)" JFBREMV="(to|to be|for) [\'\"? ]*(rem[o0]v(e|al|ed))[\'\"? ]*" JFBRLIST="((global|universal) )?[\'\"? ]*(rem[o0]v(e|al|ed))[\'\"? ]*list" JFBRM="[\'\"? ]*(rem[o0]v(e|al|ed))[\'\"? ]*" JFBVIA="(against|through|to|using|with|via)" JFBYOU="you( have|ve|\'ve)?" JFBODYCHK=(`cat $JFDIR/jf-bodychk`) # The following lines containing $JFBODYCHK are expanded twice, with the # two $ at the beginning of each line. This is to allow the variables in # the jf-bodychk to be expanded. This is not done for the user bodychk # because the extra variable escape can make the regexps rather complex. # To enable it, though, add an extra "$" to this line: # * $ ${JFUSERBODYCHK:-$JFNOMATCH} # so that it appears as # * $ $ ${JFUSERBODYCHK:-$JFNOMATCH} # and another here: # * $ ()\/($JFUSERBODYCHK) # so that it appears as # * $ $ ()\/($JFUSERBODYCHK) :0HB * $ $ ${JFBODYCHK:-\$JFNOMATCH} * < 60000 { :0B * $ $ ()\/($JFBODYCHK) { JFMATCH="$JFSEC: $MATCH" INCLUDERC=$JFDIR/junkfilter.match } } :0 * $ $JF_BODYCHK_USER^0 { JFUSERBODYCHK=(`cat $JF_BODYCHK_USER_LOC`) :0HB * $ ${JFUSERBODYCHK:-$JFNOMATCH} * < 60000 { :0B * $ ()\/($JFUSERBODYCHK) { JFMATCH="${JFSEC}-User: $MATCH" INCLUDERC=$JFDIR/junkfilter.match } } JFUSERBODYCHK } JFBODYCHK JFSEC # EOF junkfilter.bodychk