1 | .\" $Id: dspam_clean.1,v 1.12 2011/11/16 00:14:11 sbajic Exp $ |
---|
2 | .\" -*- nroff -*- |
---|
3 | .\" |
---|
4 | .\" dspam_clean3.9 |
---|
5 | .\" |
---|
6 | .\" Authors: Jonathan A. Zdziarski <jonathan@nuclearelephant.com> |
---|
7 | .\" Stevan Bajic <stevan@bajic.ch> |
---|
8 | .\" |
---|
9 | .\" Copyright (C) 2002-2012 DSPAM Project |
---|
10 | .\" All rights reserved |
---|
11 | .\" |
---|
12 | .TH dspam_clean 1 "Apr 17, 2010" "DSPAM" "DSPAM" |
---|
13 | |
---|
14 | .SH NAME |
---|
15 | dspam_clean \- perform periodic maintenance of metadata |
---|
16 | |
---|
17 | .SH SYNOPSIS |
---|
18 | .na |
---|
19 | .B dspam_clean |
---|
20 | [\c |
---|
21 | .B \--profile\c |
---|
22 | =PROFILE\c |
---|
23 | ] |
---|
24 | [\c |
---|
25 | .I \-s[signature_life]\fR\c |
---|
26 | ] |
---|
27 | [\c |
---|
28 | .I \-p[probability_life]\fR\c |
---|
29 | ] |
---|
30 | [\c |
---|
31 | .I \-u[sl,hcl,shl,ihl]\fR\c |
---|
32 | ] |
---|
33 | [\c |
---|
34 | .I user1 user2 ... userN\fR\c |
---|
35 | ] |
---|
36 | |
---|
37 | .ad |
---|
38 | .SH DESCRIPTION |
---|
39 | .LP |
---|
40 | .B dspam_clean |
---|
41 | is used to perform periodic housecleaning on DSPAM's metadata dictionary by |
---|
42 | deleting old or useless data. |
---|
43 | |
---|
44 | .B dspam_clean |
---|
45 | has no effect if you use the "hash" storage driver. In that case, you should use |
---|
46 | the tools |
---|
47 | .B cssclean |
---|
48 | and |
---|
49 | .B csscompress |
---|
50 | (which do not currently have manual pages). |
---|
51 | |
---|
52 | .SH OPTIONS |
---|
53 | .LP |
---|
54 | |
---|
55 | .ne 3 |
---|
56 | .TP |
---|
57 | .BI \ \--profile= \PROFILE\c |
---|
58 | Specify a storage profile from dspam.conf. The storage profile selected will be used |
---|
59 | for all database connectivity. See dspam.conf for more information. |
---|
60 | |
---|
61 | .ne 3 |
---|
62 | .TP |
---|
63 | .BI \-s\fR\c |
---|
64 | Performs stale signature purging. If a value is specified, the default value of |
---|
65 | 14 days will be overridden. Specifying an age of 0 will delete all signatures |
---|
66 | from the user(s) processed. |
---|
67 | |
---|
68 | .ne 3 |
---|
69 | .TP |
---|
70 | .BI \-p\fR\c |
---|
71 | Deletes all tokens from the target user(s) database whose probability is |
---|
72 | between 0.35 and 0.65 (fairly neutral, useless data). If a value is |
---|
73 | specified, the default life of 30 days will be overridden. It's a good idea |
---|
74 | to use this flag once with a life of 0 days for users after a significant amount |
---|
75 | of corpus training. |
---|
76 | |
---|
77 | .ne 3 |
---|
78 | .TP |
---|
79 | .BI \-u\fR\c |
---|
80 | Deletes all unused tokens from a user's dataset. Four different life values |
---|
81 | are used: |
---|
82 | |
---|
83 | .B sl |
---|
84 | Stale tokens which have not been used for a long period of time |
---|
85 | |
---|
86 | .B hcl |
---|
87 | Tokens with a total hit count below 5 (which will be assigned a hapaxial value |
---|
88 | by DSPAM) |
---|
89 | |
---|
90 | .B shl |
---|
91 | Tokens witha single spam hit |
---|
92 | |
---|
93 | .B ihl |
---|
94 | Tokens with a single innocent hit |
---|
95 | |
---|
96 | Ages may be overridden by specifying a format string, such as \-u30,15,10,10 |
---|
97 | where each number represents the respective life. Specifying a life of zero |
---|
98 | will delete all unused tokens in the category. |
---|
99 | |
---|
100 | .ne 3 |
---|
101 | .TP |
---|
102 | .BI \ user1\ user2\ ...\ userN\fR\c |
---|
103 | Specify the username(s) to perform the selected maintenance operations on. If |
---|
104 | no username is specified, all users are processed. |
---|
105 | |
---|
106 | .SH EXIT VALUE |
---|
107 | .LP |
---|
108 | .ne 3 |
---|
109 | .PD 0 |
---|
110 | .TP |
---|
111 | .B 0 |
---|
112 | Operation was successful. |
---|
113 | .ne 3 |
---|
114 | .TP |
---|
115 | .B other |
---|
116 | Operation resulted in an error. |
---|
117 | .PD |
---|
118 | |
---|
119 | .SH COPYRIGHT |
---|
120 | Copyright \(co 2002\-2012 DSPAM Project |
---|
121 | .br |
---|
122 | All rights reserved. |
---|
123 | .br |
---|
124 | |
---|
125 | For more information, see http://dspam.sourceforge.net. |
---|
126 | |
---|
127 | .SH SEE ALSO |
---|
128 | .BR dspam (1), |
---|
129 | .BR dspam_admin (1), |
---|
130 | .BR dspam_crc (1), |
---|
131 | .BR dspam_dump (1), |
---|
132 | .BR dspam_logrotate (1), |
---|
133 | .BR dspam_merge (1), |
---|
134 | .BR dspam_stats (1), |
---|
135 | .BR dspam_train (1) |
---|