Import ezmlm-idx 0.40
[ezmlm] / ezmlm-clean.1
CommitLineData
f8beb284
MW
1.TH ezmlm-clean 1
2.SH NAME
3ezmlm-clean \- clean moderation directory
4.SH SYNOPSIS
5.B ezmlm-clean [mMrRvV]
6.I dir
7.SH DESCRIPTION
8If
9.I dir\fB/modpost
10exists,
11.B ezmlm-clean
12sends out messages for timed-out posts in the moderation directory
13and removes stubs for rejected and accepted posts
14for the mailing list stored in
15.IR dir .
16If
17.I dir\fB/modpost
18does not exist,
19.B ezmlm-clean
20does nothing and exits.
21
22.B ezmlm-clean
23reads
24.I dir\fB/modtime
25and extracts a time-out ``time'' in hours from it. If ``time'' is 0 or
26.I dir\fB/modtime
27is empty or doesn't exist,
28a default of 120 h is used. If a time is given, it is limited to
29the range 24 h to 240 h.
30
31.B ezmlm-clean
32then looks through
33.I dir\fB/mod/accepted/
34and
35.I dir\fB/mod/rejected/
36and removes message stubs older than ``time''. ``Time'' is
37a minimum retention time. Since the files are processed only
38when
39.B ezmlm-clean
40is run, the delay before a message is timed-out may
41be substantially longer if the list does not receive many messages.
42
43Message age
44determined by the time parsed
45.I from the file name,
46not from the creation time.
47Thus, there is no good way to extend the life of
48the file by e.g. touching it. Also, files in these directories are not
49checked for the proper format. Thus, most non-message files in these
50directories will be deleted the first time
51.B ezmlm-clean
52is run.
53
54For messages in
55.I dir\fB/mod/pending/
56no action is taken on read-only files. Messages without the owner execute
57bit set are silently removed, as they are the result of incomplete
58.B ezmlm-store(1)
59executions. For other messages, a notification of the time out is sent
60to the sender, before the file is removed.
61
62.B ezmlm-clean
63logs errors to the mail log.
64Re-delivery should be avoided by suffixing any
65.I \.qmail
66line invoking
67.B ezmlm-clean
68with '|| exit 0'.
69.SH OPTIONS
70.TP
71.B \-m
72(Default.)
73The timed-out post is sent as a MIME enclosure.
74.TP
75.B \-M
76The timed-out post is appended to the message.
77.TP
78.B \-r
79(Default.)
80The timed-out post is returned to sender.
81.TP
82.B \-R
83The timed-out post is discarded without sender notification.
84.B Note:
85.B ezmlm-clean
86is normally run from both
87.I dir\fB/editor
88and
89.IR dir\fB/moderator .
90To suppress sender notification, the switch needs to be specified
91for all invocations of
92.BR ezmlm-clean .
93.TP
94.B \-v
95Display
96.B ezmlm-clean
97version information.
98.TP
99.B \-V
100Display
101.B ezmlm-clean
102version information.
103.SH "CHARACTER SETS"
104If
105.I dir\fB/charset
106exists,
107.B ezmlm-clean
108will use the character set listed for all messages. Otherwise, the
109default ``us-ascii'' will be used. The character set can be suffixed
110by ``:'' followed by a code. If the code is ``Q'', outgoing messages are
111sent as ``Quoted-Printable'', if it is ``B'' they are sent ``base64'' encoded.
112Otherwise, text is sent as is.
113.SH "SEE ALSO"
114ezmlm-make(1),
115ezmlm-moderate(1),
116ezmlm-store(1),
117ezmlm(5)