Import ezmlm-idx 0.40
[ezmlm] / ezmlm-send.1
CommitLineData
5b62e993
MW
1.TH ezmlm-send 1
2.SH NAME
3ezmlm-send \- distribute a message to a mailing list
4.SH SYNOPSIS
5.B ezmlm-send
f8beb284
MW
6[
7.B \-cCrRvV
8] [
9.B \-h\fI header
10]
5b62e993
MW
11.I dir
12.SH DESCRIPTION
13.B ezmlm-send
14reads a mail message and
15sends it to the mailing list stored in
16.IR dir .
17If
18.I dir\fB/archived
19exists,
20.B ezmlm-send
21records a copy of the message in the
f8beb284 22.I dir\fB/archive/
5b62e993
MW
23directory.
24
f8beb284
MW
25If
26.I dir\fB/indexed
27exists,
28.B ezmlm-send
29adds the subject, author and time stamp of the message to the index, kept with
30the message in a subdirectory of
31.IR dir\fB/archive/ .
32The subject is processed to make reply-subject entries identical to
33original
34message subject entries.
35The subject index is used for the archive retrieval functions of
36.BR ezmlm-get(1) .
37Use
38.B ezmlm-idx(1)
39to create a subject index from a preexisting archive.
40
41Subject and author lines are decoded if they are encoded per rfc2047. When
42split lines are unfolded, the number of escape sequences for
43iso-2022-* character sets is minimized. For instance, two
44consequtive toascii sequences are reduced.
45This processing is done for the character set specified in
46.IR dir\fB/charset .
47The result of this process is the same for a given subject, irrespective
48of encoding.
49
5b62e993
MW
50At the beginning of the message,
51.B ezmlm-send
52prints a new
53.B Mailing-List
54field with the contents of
55.IR dir\fB/mailinglist .
56It rejects the message if there is already a
57.B Mailing-List
58field.
59
f8beb284
MW
60If
61.I dir\fB/listid
62exists,
63.B ezmlm-send
64will assume that the format is correct and
65create a ``List-ID:'' header by placing the contents after the
66text ``List-ID: ''.
67
68Next,
69.B ezmlm-send
70prints all the new fields listed in
71.IR dir\fB/headeradd .
72Any tags, ``<#h#>'', ``<#l#>'', or ``<#n#>'' found in these headers
73are replaced by the list host name, list local name, and message number,
74respectively.
75
5b62e993 76.B ezmlm-send
f8beb284 77then prints an appropriate
5b62e993
MW
78.B Delivered-To
79line.
80
81.B ezmlm-send
82deletes any incoming fields with names listed in
83.IR dir\fB/headerremove .
84
85.B ezmlm-send
f8beb284
MW
86removes MIME parts specified in
87.I dir\fB/mimeremove
88before archiving and distribution of the message.
89
90If
91.I dir\fB/text/trailer
92exists,
93.B ezmlm-send
94adds the trailer to simple text/plain messages in the same encoding as used for
95the the message. However, if the encoding is ``base64'' it is not safe
96to do this and the header is suppressed.
97For composite MIME messages, the trailer is added as a separate
98part, with the character set and encoding specified in
99.IR dir\fB/charset .
100The trailer is not added to multipart/alternative messages.
101Any tags, ``<#h#>'', ``<#l#>'', or ``<#n#>'' found in
102.I dir\fB/text/trailer
103are replaced by the list host name, list local name, and message number,
104respectively.
105
106If
107.I dir\fB/prefix
108exists,
109.B ezmlm-send
110will prefix the subject line with the first line of this
111file. A space will be added to separate
112.B prefix
113from the subject text.
114.B prefix
115is ignored for sublists. If
116.I dir\fB/prefix
117contains a ``#'', the last ``#'' will be replaced by the message number.
118Any prefix starting with text of a
119reply indicator (``Re:'', ``Re[n]:'', etc) will cause problems.
120The prefix may be
121rfc2047 encoded. Rfc2047 Iso-2022-* encoded prefixes
122.I must
123end in ascii.
124
125The prefix feature and especially the message number feature
126modify the message in violation
127with Internet mail standards. The features have been implemented by popular
128demand. Use at your own peril.
129
130.I dir\fB/sequence
131is ignored as of ezmlm-idx-0.32. Use
132.I dir\fB/headeradd
133with substitution to achieve the same goal.
134
135If
136.I dir\fB/qmqpservers
137exists,
138.B ezmlm-send will use
139.B qmail-qmqp(1)
140to send messages.
141
142.B ezmlm-send
5b62e993
MW
143does not distribute bounce messages:
144if the environment variable
145.B SENDER
146is set, and is either empty or
147.BR #@[] ,
148.B ezmlm-send
149rejects the message.
f8beb284
MW
150.SH OPTIONS
151.TP
152.B \-c
153No longer supported. Ignored for backwards compatibility.
154.TP
155.B \-C
156No longer supported. Ignored for backwards compatibility.
157.B ezmlm-send
158has to parse the subscriber database.
159.TP
160.B \-h\fI header
161If the list is a sublist, i.e.
162.I dir\fB/sublist
163exists,
164.I header
165is required in all messages to the list. This option is used
166when ezmlm is used to run a sublist of a lists run by a different
167mailing list
168manager that uses
169.I header
170rather than ``Mailing-List'' to identify messages from the list.
171Anything after the first colon (if present) in
172.I header
173is ignored.
174.TP
175.B \-r
176Copy incoming ``Received:'' headers to the outgoing message.
177.TP
178.B \-R
179(Default.)
180Do not copy incoming ``Received:'' headers, except the one added by
181the (last) listhost, to the outgoing message.
182In some
183cases, especially for sublists,
184the messages can have a large number of ``Received:''
185headers. This may lead to bounces for some users due to
186sendmail ``hopcounts'' set too low somewhere in the mail path. These users can
187subscribe and receive warning and probe messages, but no list messages, unless
188the number of ``Received:'' headers is reduced.
189
190Pre-list ``Received:'' headers are of little interest to normal list
191subscribers. ``Received:'' headers are
192still copied to the archive and available
193to anyone from there for message tracking purposes.
194.TP
195.B \-v
196Display
197.B ezmlm-send
198version information.
199.TP
200.B \-V
201Display
202.B ezmlm-send
203version information.
5b62e993
MW
204.SH "SUBLISTS"
205If
206.I dir\fB/sublist
207exists,
208.B ezmlm-send
209changes its behavior in several ways.
210
211First, if
212.B SENDER
213is set,
214and the first line of
215.I dir\fB/sublist
216has the form
217.IR parent\fB@\fIparenthost ,
218.B ezmlm-send
219insists that
220.B SENDER
221have the form
222.IR parent\fB...@\fIparenthost .
223
224Second,
225.B ezmlm-send
226demands that the message already have a
227.B Mailing-List
228field.
229
230Third,
231.B ezmlm-send
232does not add its own
233.B Mailing-List
234field.
f8beb284
MW
235
236Fourth,
237.B ezmlm-send
238uses the incoming message number for the outgoing message, if the list
239is not archived and the incoming SENDER has the correct format.
240This allows you to refer bounce warning recipients to the main list for
241archive retrieval of the missed messages. If the sublist archives
242message, it is assumed that missed messages will be retrieved from the sublist
243archive.
244
245The list
246still increments
247.I dir\fB/num
248for each message. If the sublist is archived, use of incoming message number
249for archive storage would be a security risk. In this case, the local sublist
250message number is used.
251.SH "OPTION USAGE"
252In general, the use of a prefix is discouraged. It wastes subject line space,
253creates trouble when MUAs add non-standard reply indicators. However, many
254users expect it not because it is useful, but because they are used to it.
255
256The
257.B \-C
258switch prevents posts from being set to SENDER. Rather than just copying
259out subscriber address files,
260.B ezmlm-send
261has to parse them to look for SENDER. This makes it less efficient. Also,
262it is useful for the SENDER to see the post to know that it has made it
263to the list, and it's context to other subscribers, i.e. where it came
264within the traffic of messages on the list.
265
266Avoiding SENDER as a recipient is useful in small lists, such as small
267teams with varying members, where ezmlm serves mainly as an efficient tool
268to keep the team connected without administrator intervention. Here the
269overhead of subscriber list parsing is negligible.
270.SH "CHARACTER SETS"
271If the list is indexed,
272.B ezmlm-send
273will keep a message index. rfc2047-encoded subject and from lines will be
274decoded.
275If
276.I dir\fB/charset
277exists,
278.B ezmlm-send
279will eliminate redundant escape sequences from the headers according to
280the character set specified in this file.
281Only character sets using escape sequences need this support. Currently,
282supported are iso-2022-jp*, iso-2022-kr, and iso-2022-cn*. Only iso-2022-jp
283has been tested extensively.
284
285The character set can be suffixed
286by ``:'' followed by a code. Recognized codes are ``Q''
287for ``Quoted-Printable'', and ``B'' for ``base64''.
288
289For
290.BR ezmlm-send ,
291this affects the format of the trailer, if a trailer is specified and if the
292message is a multipart mime message
5b62e993 293.SH "SEE ALSO"
f8beb284
MW
294ezmlm-get(1),
295ezmlm-idx(1),
5b62e993
MW
296ezmlm-manage(1),
297ezmlm-make(1),
298ezmlm-sub(1),
299ezmlm-unsub(1),
300ezmlm-reject(1),
f8beb284
MW
301ezmlm(5),
302qmail-qmqp(1)