[cvs] bogofilter/src bf_compact,1.6,1.7 bf_tar,1.5,1.6
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2004-12-14 01:34:32
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24023 Modified Files: bf_compact bf_tar Log Message: Use new bogoutil -P dir. Index: bf_compact =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bf_compact,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- bf_compact 13 Dec 2004 17:19:07 -0000 1.6 +++ bf_compact 14 Dec 2004 01:34:24 -0000 1.7 @@ -36,8 +36,7 @@ bogoutil -d "$ORIG"/"$FILE" | bogoutil -l $TEMP/"$FILE" #checkpoint and remove unneeded log files -db_checkpoint -1h $TEMP -for i in `db_archive -ah $TEMP` ; do rm -f "$i" ; done +bogoutil -P $TEMP mv "$ORIG" "$ORIG.old" mv $TEMP "$ORIG" Index: bf_tar =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bf_tar,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- bf_tar 3 Dec 2004 09:41:44 -0000 1.5 +++ bf_tar 14 Dec 2004 01:34:24 -0000 1.6 @@ -35,7 +35,7 @@ bogohome="$1" nukelogs() { - rm -f `db_archive -a -h "$bogohome"` + bogoutil -P "$bogohome" } # run db_checkpoint to reduce number of logs |