Import ezmlm-idx 0.40
[ezmlm] / ezmlm-moderate.1
CommitLineData
f8beb284
MW
1.TH ezmlm-moderate 1
2.SH NAME
3ezmlm-moderate \- process moderator actions for message
4acceptance and rejection
5.SH SYNOPSIS
6.B ezmlm-moderate [-cCmMrRvV]
7.B [-t\fI reply-to@host\fB]
8.I dir ['/path/program args']
9
10.SH DESCRIPTION
11.B ezmlm-moderate
12reads a mail message, expecting it to contain an
13.I -accept
14or
15.I -reject
16action request for the mailing list stored in
17.I dir.
18
19.B ezmlm-moderate
20verifies the cookie sent as part of the action request, and if correct
21attempts to find the corresponding message in
22.IR dir\fB/mod/pending/ .
23If the message is found, it is either rejected or posted to the list,
24depending on the action request.
25
26Posts to the list are handled by
27piping the message to
28.B ezmlm-send(1)
29located in the ezmlm binary directory, as set at compile time. This is
30usually the directory that ezmlm-moderate resides in.
31.B ezmlm-send(1)
32is provided with
33.I dir
34as the first argument.
35
36If the optional second argument is given,
37.B ezmlm-moderate
38pipes the message to that program, as executed by sh.
39No parameters are supplied.
40
41.I dir
42is passed as an argument to
43.BR ezmlm-send(1) ,
44but NOT to any program specified as the optional
45.B ezmlm-moderate
46command line argument.
47
48.B ezmlm-moderate
49does not bother to correctly set sender.
50.B ezmlm-send(1)
51doesn't care, and any other program that might be used can parse the
52sender from the first line of the message, which is always
53.I Return-Path: <address@host.domain>
54as build from SENDER originally passed to
55.BR ezmlm-store(1) .
56
57If the message is rejected, an optional moderator comment is copied into the
58notification to the message sender.
59A moderator comment is any text in the
60.I -reject
61request found between two lines with ``%%%'' starting in one of the first
625 positions of the line. The easiest is to use lines consisting of ``%%%''
63only. If the characters preceeding the ``%%%'' are found at the beginning
64of any lines within the comment, the characters are removed. This is to
65appropriately ignore any ``quote marks'' that you mail program might place at
66the beginning of lines in a reply.
67
68.B ezmlm-moderate
69messages are sent ``From:''
70.IR list-owner@listhost .
71This allows the poster to easily complain to the owner of the list, in case
72s/he objects. An optional ``Reply-To:'' header can be added via the
73.BR \-r\fI\ reply-to@host .
74
75Once the message has been successfully accepted or rejected, it is removed from
76.I dir\fB/mod/pending/
77and a stub is created in
78.I dir\fB/mod/accepted/
79or
80.IR dir\fB/mod/rejected/ ,
81respectively.
82This is done in order to be able to notify the senders of later moderation
83requests about the fate of the message.
84
85A failure to find the message in
86.I dir\fB/mod/pending/
87is most often caused by the message already having been accepted or rejected
88by another moderator. Therefore,
89.B ezmlm-moderate
90looks in
91.I dir\fB/mod/accepted/
92and
93.I dir\fB/mod/rejected/
94for a message stub. If found,
95.B ezmlm-moderate
96notifies the sender in the form of a fatal error
97if the fate of the message was different from
98that intended by the current action request.
99Otherwise, the fate of the message is silently logged.
100
101If the message is not found, it has timed out and the message or
102the message stub has been removed by
103.BR ezmlm-clean(1) .
104In this case,
105.B ezmlm-moderate
106notifies the moderator of the failure, but can no longer discern the fate
107of the original message. Again, notification is in the form of a fatal
108error from qmail.
109
110At the beginning of the message,
111.B ezmlm-moderate
112prints a new
113.B Mailing-List
114field with the contents of
115.IR dir\fB/mailinglist .
116It rejects the message if there is already a
117.B Mailing-List
118field.
119
120.B ezmlm-moderate
121does not distribute bounce messages:
122if the environment variable
123.B SENDER
124is set, and is either empty or
125.BR #@[] ,
126.B ezmlm-moderate
127rejects the message.
128.SH OPTIONS
129.TP
130.B \-cCrR
131Passed on to ezmlm-send(1).
132.TP
133.B \-m
134(Default.)
135The rejected post is sent as a MIME enclosure.
136.TP
137.B \-M
138The rejected post is appended to the message.
139.TP
140.B \-t\fI reply-to@host
141A ``Reply-To:
142.IR reply-to@host ''
143header will be added to the moderation request.
144.TP
145.TP
146.B \-v
147Display
148.B ezmlm-moderate
149version information.
150.TP
151.B \-V
152Display
153.B ezmlm-moderate
154version information.
155.SH "CHARACTER SETS"
156If
157.I dir\fB/charset
158exists,
159.B ezmlm-moderate
160will use the character set listed for all messages. Otherwise, the
161default ``us-ascii'' will be used. The character set can be suffixed
162by ``:'' followed by a code. If the code is ``Q'', outgoing messages are
163sent as ``Quoted-Printable'', if it is ``B'' they are sent ``base64'' encoded.
164Otherwise, text is sent as is.
165.SH "SEE ALSO"
166ezmlm-clean(1),
167ezmlm-make(1),
168ezmlm-send(1),
169ezmlm-store(1),
170ezmlm(5)