bogoutil / message counts

Barry Gould BarryGould at PennySaverUSA.net
Thu May 8 22:22:26 CEST 2003


At 01:18 PM 5/8/2003, you wrote:
>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.

Oops... Maybe I executed the command again (with the -n), thinking it would 
overwrite the files. I guess it didn't :(
Sorry.



>>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