[cvs] bogofilter/src/tests/bogofilter t.split,1.3,1.4
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-03-02 18:48:37
|
Update of /cvsroot/bogofilter/bogofilter/src/tests/bogofilter In directory sc8-pr-cvs1:/tmp/cvs-serv5633/src/tests/bogofilter Modified Files: t.split Log Message: Since discarding of html comments is the standard behavior, remove options for enabling and disabling it. Index: t.split =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/bogofilter/t.split,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- t.split 24 Feb 2003 22:46:05 -0000 1.3 +++ t.split 2 Mar 2003 18:48:33 -0000 1.4 @@ -22,16 +22,6 @@ BOGOFILTER_DIR="${TMPDIR}/tests" export BOGOFILTER_DIR -# kill_html_comments=yes -cat <<EOF > ${TMPDIR}/cfg.y -kill_html_comments=yes -EOF - -# kill_html_comments=no -cat <<EOF > ${TMPDIR}/cfg.n -kill_html_comments=no -EOF - verbose=0 if [ "$1" = "-v" ]; then verbose=1 @@ -57,12 +47,10 @@ files=`ls ${srcdir}/inputs/split.d/msg*` for msg in $files ; do nam=`basename $msg` - for cfg in n y ; do - out="$TMPDIR/$nam" - map_rc $BOGOLEXER -C -p -k $cfg -I $msg > $out.l$cfg - map_rc $BOGOFILTER -vvv -f -c ${TMPDIR}/cfg.$cfg -I $msg > $out.f$cfg - printf "%-20s %s\n" $nam.$cfg `head -1 $out.f$cfg | sed s@spamicity=@@ | tr -d "," | awk '{print $4}'` >> ${TMPDIR}/$OUT - done + out="$TMPDIR/$nam" + map_rc $BOGOLEXER -C -p -I $msg > $out.l + map_rc $BOGOFILTER -vvv -f -C -I $msg > $out.f + printf "%-20s %s\n" $nam `head -1 $out.f | sed s@spamicity=@@ | tr -d "," | awk '{print $4}'` >> ${TMPDIR}/$OUT done [ ! -z "$BF_SAVEDIR" ] && . ${srcdir}/../t.save |