bogoutil / message counts
David Relson
relson at osagesoftware.com
Thu May 8 22:18:40 CEST 2003
At 03:26 PM 5/8/03, Barry Gould wrote:
>After running bogoutil (0.12.2) to clean up my dbs (convert non-ascii and
>remove tokens with count=1),
>my MSG_COUNTs are totally different.
>
>Is this a bug, or just a side-effect of the way bogoutil works?
Did you load into a new database? If you load into an existing database,
bogoutil adds the incoming count to the count in the database.
>I used:
>bogoutil -n -d goodlist.db | bogoutil -l goodlist.db.new -c 1
>BTW, it's not clear if -n should be on the dump side or the load side of
>this command.
>Also, I would have preferred to discard the non-ascii stuff (rather than
>convert to ?). I suppose I can do that with grep, though.
-n can be on either side. As you determined, it's a "change token text"
option not a "discard" option.
>BEFORE:
># ./count.sh
>-rw-r--r-- 1 root root 22M May 8 11:17
>/var/spool/mail/.bogofilter/goodlist.db
>-rw-r--r-- 1 root root 5.1M May 8 11:17
>/var/spool/mail/.bogofilter/spamlist.db
> spam good
>.MSG_COUNT 12745 34688
>/var/spool/mail/.bogofilter/goodlist.db 505807
>/var/spool/mail/.bogofilter/spamlist.db 123752
>
>
>AFTER:
># ./count.sh
>-rw-r--r-- 1 root root 4.7M May 8 12:14
>/var/spool/mail/.bogofilter/goodlist.db
>-rw-r--r-- 1 root root 2.9M May 8 12:14
>/var/spool/mail/.bogofilter/spamlist.db
> spam good
>.MSG_COUNT 30516 69380
>/var/spool/mail/.bogofilter/goodlist.db 150368
>/var/spool/mail/.bogofilter/spamlist.db 88193
I'll do some testing and see if I can reproduce the problem.
More information about the Bogofilter
mailing list