[cvs] bogofilter/src/tests t.message_id,NONE,1.1 Makefile.am,1.27,1.28 t.msgaddr,1.3,1.4
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2004-07-08 03:22:06
|
Update of /cvsroot/bogofilter/bogofilter/src/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21666/tests Modified Files: Makefile.am t.msgaddr Added Files: t.message_id Log Message: Add message ID to parser and use format char '%A' for message address and '%I' for message id. --- NEW FILE: t.message_id --- #!/bin/sh . ${srcdir=.}/t.frame CFG=${TMPDIR}/test.cf OUT=${TMPDIR}/test.out CORRECT=${SYSTEST}/outputs/message_id.ref cat <<EOF > $CFG # include message ID # suppress timestamps & version info in output header_format=%h: %c, message_id=%I EOF # build wordlists $BOGOFILTER -n -v -D -c $CFG -M -B ${srcdir}/inputs/good.mbx > /dev/null $BOGOFILTER -s -v -D -c $CFG -M -B ${srcdir}/inputs/spam.mbx > /dev/null $BOGOFILTER -v -D -c $CFG -M -B ${srcdir}/inputs/good.mbx \ ${srcdir}/inputs/spam.mbx \ | sed 's}.*/inputs/}inputs/}' > $OUT # compare test output to reference output if [ $verbose -eq 0 ]; then diff $CORRECT $OUT cmp $CORRECT $OUT else diff $DIFF_BRIEF $CORRECT $OUT fi Index: Makefile.am =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/Makefile.am,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- Makefile.am 29 Jun 2004 15:40:24 -0000 1.27 +++ Makefile.am 8 Jul 2004 03:21:57 -0000 1.28 @@ -24,7 +24,7 @@ t.split t.parsing \ t.lexer t.lexer.mbx \ t.folded_rfc2047 \ - t.msgaddr + t.msgaddr t.message_id WORDLIST_TESTS = t.dump.load t.nonascii.replace t.maint t.robx t.regtest t.upgrade.subnet.prefix t.multiple.wordlists Index: t.msgaddr =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/t.msgaddr,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- t.msgaddr 30 Jun 2004 02:04:35 -0000 1.3 +++ t.msgaddr 8 Jul 2004 03:21:57 -0000 1.4 @@ -9,7 +9,7 @@ cat <<EOF > $CFG # include ip address # suppress timestamps & version info in output -header_format=%h: %c, ipaddr=%I +header_format=%h: %c, ipaddr=%A EOF # build wordlists |