-WW updating both databases

David Relson relson at osagesoftware.com
Mon Sep 29 13:49:26 CEST 2003


On Mon, 29 Sep 2003 09:06:42 +0100
jcmatthews at rangemaster.co.uk (Jonathan Matthews) wrote:

> From: David Relson [mailto:relson at osagesoftware.com]

...[snip]...

> I'll do some tinkering this week and see what comes out.  I'm in
> full-on exam revision mode at the moment, unfortunately :-(
> 
> In addition to your script, what other information would be useful? 
> I'd imagine a log of the output of the following - but is there
> anything else?
> 
> $ ls -l ~/.bogofilter
> $ cat spammy | bogofilter -WW -u
> $ cat hammy  | bogofilter -WW -u
> $ ls -l ~/.bogofilter
> 
> Cheers!
> jc

Jonathan,

Here's a slightly more comprehensive test.  It starts with old wordlists
copied to a test directory and does the spammy and hammy updates. 
Between each step it shows the test directory so file changes can be
seen.  

Running it I see only one wordlist changing size for each bogofilter
run, though both timestamps are modified.  I'm not concerned about the
timestamps since separate wordlists are an idea whose time has passed. 
I'll take a look and see if that minor issue can be easily corrected.

Anyhow, I'm looking forward to learning if your results are comparable
to mine.

Ciao,

David


### file test.jcm.sh ###

#!/bin/sh -x

bogofilter -V
export BOGOFILTER_DIR="test.d"
[ ! -d $BOGOFILTER_DIR ] && mkdir $BOGOFILTER_DIR
cp -p old.d/*.db $BOGOFILTER_DIR
ls -l $BOGOFILTER_DIR
bogofilter -WW -s < /dev/null
ls -l $BOGOFILTER_DIR
cat spammy | bogofilter -WW -u
ls -l $BOGOFILTER_DIR
cat hammy  | bogofilter -WW -u
ls -l $BOGOFILTER_DIR


### output of test.jcm.sh ###

[relson at osage src]$ test.jcm.sh
+ bogofilter -V
bogofilter version 0.15.4.cvs.CVStime_20030929_002212
    Algorithms: Fisher Graham Robinson
    Database: BerkeleyDB (4.1.25), combined
Copyright (C) 2002 Eric S. Raymond

bogofilter comes with ABSOLUTELY NO WARRANTY. This is free software, and
you
are welcome to redistribute it under the General Public License. See the
COPYING file with the source distribution for details.

+ export BOGOFILTER_DIR=test.d
+ BOGOFILTER_DIR=test.d
+ '[' '!' -d test.d ']'
+ cp -p old.d/goodlist.db old.d/spamlist.db test.d
+ ls -l test.d
total 192
-rw-r--r--    1 relson   relson     126976 Aug 25 20:55 goodlist.db
-rw-r--r--    1 relson   relson      61440 Aug 25 20:55 spamlist.db
+ bogofilter -WW -s
+ ls -l test.d
total 192
-rw-r--r--    1 relson   relson     126976 Sep 29 07:39 goodlist.db
-rw-r--r--    1 relson   relson      61440 Sep 29 07:39 spamlist.db
+ cat spammy
+ bogofilter -WW -u
+ ls -l test.d
total 236
-rw-r--r--    1 relson   relson     126976 Sep 29 07:39 goodlist.db
-rw-r--r--    1 relson   relson     106496 Sep 29 07:39 spamlist.db
+ cat hammy
+ bogofilter -WW -u
+ ls -l test.d
total 344
-rw-r--r--    1 relson   relson     237568 Sep 29 07:39 goodlist.db
-rw-r--r--    1 relson   relson     106496 Sep 29 07:39 spamlist.db




More information about the Bogofilter mailing list