source: npl/mailserver/dspam/dspam-3.10.2/src/tools.sqlite_drv/purge-3.sql @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 478 bytes
Line 
1-- $Id: purge-3.sql,v 1.1 2010/04/21 11:31:00 sbajic Exp $
2delete from dspam_token_data
3  where (innocent_hits*2) + spam_hits < 5
4  and (julianday('now')-30) > julianday(last_hit);
5delete from dspam_token_data
6  where innocent_hits + spam_hits = 1
7  and (julianday('now')-15) > julianday(last_hit);
8delete from dspam_token_data
9  where (julianday('now')-90) > julianday(last_hit);
10delete from dspam_signature_data
11  where (julianday('now')-14) > julianday(created_on);
12
13vacuum;
Note: See TracBrowser for help on using the repository browser.