Re: weird behaviors of cleanup and purge?

Brian Burton <[email protected]>
Newsgroups gmane.mail.spam.spamprobe.general
Message-ID <[email protected]>
Daniel Higgins wrote:
> a recent posting by jem had me wondering about the terms in my database
> (using pbl) and i found it rather bizzare that neither cleanup nor purge
> was doing anything to the terms (import/export doesn't do anything to
> the count terms either)
> 
> # wc -l dbword 
>  290809 dbword
> # spamprobe.pbl -d . counts
> GOOD 9681 SPAM 27128
> # spamprobe.pbl -d . purge 10000
> # spamprobe.pbl -d . counts
> GOOD 9681 SPAM 27128
[snip]

Cleanup and purge remove individual terms, not messages.  counts reports 
on the number of messages of each type that have been added to the 
database, not the number of terms.  So this is exactly what I'd expect.

If you replace the counts command with dump and pipe to wc -l you would 
see a change after the purge.

All the best,
++Brian


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.