# junkfilter # a junk email filter system for procmail # Copyright 2004 Gregory Sutter # # $Id$ # # Please read the file "README" and the page # http://junkfilter.zer0.org/ before using junkfilter. # This is junkfilter.dcc, which calls the Distributed Checksum # Clearinghouse client (http://www.rhyolite.com/anti-spam/dcc/) JFSEC=dcc ## check for X-DCC: header and capture if present #:0 #* ^X-DCC:[ ]*\/.* #{ JFXDC=$MATCH } #| dccproc -ERw whiteclnt :0 f | dccproc -ER ## match dcc results #:0 #* ^X-DCC: SPAM[ ]+\( pR: \/-?[.0-9]+ #{ JFMATCH="$JFSEC: score=$MATCH" INCLUDERC=$JFDIR/junkfilter.match } ## remove dcc-generated headers. #:0 fw #| formail -I X-dcc-Status ## replace original X-dcc-Status header if there was one. #:0 fw #* $ $JFXCS^0 #| formail -I X-dcc-Status: $JFXCS JFSEC # EOF junkfilter.dcc