Thread: [cvs] bogofilter/src/tests t.MH,1.12,1.13 t.bulkmode,1.18,1.19 t.maint,1.32,1.33 t.regtest,1.9,1.10
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: David R. <re...@us...> - 2005-11-13 16:45:58
|
Update of /cvsroot/bogofilter/bogofilter/src/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14765 Modified Files: t.MH t.bulkmode t.maint t.regtest t.systest Log Message: Ignore local config files. Index: t.maint =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/t.maint,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- t.maint 16 Sep 2005 20:57:29 -0000 1.32 +++ t.maint 13 Nov 2005 16:45:48 -0000 1.33 @@ -36,10 +36,10 @@ echo initial: `$BOGOUTIL -d $WORDLIST | wc -l` > $OUT for cnt in 0 1 2 3 ; do - $BOGOUTIL -c $cnt -m $WORDLIST - echo "count $cnt ->" `$BOGOUTIL -d $WORDLIST | wc -l` >> $OUT + $BOGOUTIL -C -c $cnt -m $WORDLIST + echo "count $cnt ->" `$BOGOUTIL -C -d $WORDLIST | wc -l` >> $OUT if [ $verbose -ne 0 ]; then - $BOGOUTIL -d $WORDLIST > $OUT.$cnt + $BOGOUTIL -C -d $WORDLIST > $OUT.$cnt fi done Index: t.regtest =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/t.regtest,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- t.regtest 16 Mar 2005 12:18:22 -0000 1.9 +++ t.regtest 13 Nov 2005 16:45:48 -0000 1.10 @@ -30,10 +30,10 @@ fi if [ -f $BOGOFILTER_DIR/goodlist.${DB_EXT} ] ; then - g=`$BOGOUTIL -d $BOGOFILTER_DIR/goodlist.${DB_EXT} | grep -v " 0 " | tee $TMPDIR/good.$T.out | wc -l` - s=`$BOGOUTIL -d $BOGOFILTER_DIR/spamlist.${DB_EXT} | grep -v " 0 " | tee $TMPDIR/spam.$T.out | wc -l` + g=`$BOGOUTIL -C -d $BOGOFILTER_DIR/goodlist.${DB_EXT} | grep -v " 0 " | tee $TMPDIR/good.$T.out | wc -l` + s=`$BOGOUTIL -C -d $BOGOFILTER_DIR/spamlist.${DB_EXT} | grep -v " 0 " | tee $TMPDIR/spam.$T.out | wc -l` else - $BOGOUTIL -d $BOGOFILTER_DIR/wordlist.${DB_EXT} > $TMPDIR/word.$T.out + $BOGOUTIL -C -d $BOGOFILTER_DIR/wordlist.${DB_EXT} > $TMPDIR/word.$T.out g=`grep -v " 0$" < $TMPDIR/word.$T.out | tee $TMPDIR/good.$T.out | wc -l` s=`grep -v " 0 " < $TMPDIR/word.$T.out | tee $TMPDIR/spam.$T.out | wc -l` fi Index: t.systest =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/t.systest,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- t.systest 16 Mar 2005 12:18:22 -0000 1.14 +++ t.systest 13 Nov 2005 16:45:48 -0000 1.15 @@ -57,7 +57,7 @@ $BOGOFILTER $OPTS -n < ${SYSTEST}/inputs/good.mbx for f in $BOGOFILTER_DIR/*.${DB_EXT} ; do n=`basename $f .${DB_EXT}` - $BOGOUTIL -d $BOGOFILTER_DIR/$n.${DB_EXT} > $BOGOFILTER_DIR/$n.txt + $BOGOUTIL -C -d $BOGOFILTER_DIR/$n.${DB_EXT} > $BOGOFILTER_DIR/$n.txt done if [ $verbose -ne 0 ]; then ls -l $BOGOFILTER_DIR/*list.txt Index: t.MH =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/t.MH,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- t.MH 16 Mar 2005 12:18:22 -0000 1.12 +++ t.MH 13 Nov 2005 16:45:48 -0000 1.13 @@ -24,7 +24,7 @@ $BOGOFILTER -C -D -s $v -B $TMPDIR/spam wordlist=".MSG_COUNT Lotus Magazine Min Service connection more most set that unsubscribe" -$BOGOUTIL -w $WORDLIST $wordlist >$OUT || rm -f $OUT +$BOGOUTIL -C -w $WORDLIST $wordlist >$OUT || rm -f $OUT if [ $verbose -eq 0 ]; then cmp $CORRECT $OUT Index: t.bulkmode =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/t.bulkmode,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- t.bulkmode 29 Jun 2005 03:11:25 -0000 1.18 +++ t.bulkmode 13 Nov 2005 16:45:48 -0000 1.19 @@ -27,9 +27,11 @@ } if [ -d $BOGOFILTER_DIR ] ; then rm -f $BOGOFILTER_DIR/* ; else : ; fi + mkdir -p $BOGOFILTER_DIR $BOGOFILTER -C -s < ${SYSTEST}/inputs/spam.mbx $BOGOFILTER -C -n < ${SYSTEST}/inputs/good.mbx + #for f in $BOGOFILTER_DIR/*.${DB_EXT} ; do # o=`echo $f | sed s@.${DB_EXT}@.txt@` # $BOGOUTIL -d $f > $o |