Upstream qmail 1.01
[qmail] / qlist.1
CommitLineData
2117e02e
MW
1.TH qlist 1
2.SH NAME
3qlist \- handle mailing list subscription requests
4.SH SYNOPSIS
5in
6.BR .qmail-\fIlist-request :
7.br
8.B |qlist
9.I user-list@host
10.I user-list-request@host
11.br
12.B .qmail-\fIlist
13.B .qmail-\fIlist-request
14.B .qtemp-\fIlist
15.br
16.I owner
17[
18.I moreinfo
19]
20.br
21(all on one line)
22.SH DESCRIPTION
23.B qlist
24manages a
25.B qmail
26mailing list.
27
28When
29.B qlist
30receives a message,
31it looks through the body of the message for commands.
32.B WARNING:
33.B qlist
34looks for a command only at the beginning of a line.
35Exception:
36.B qlist
37also looks at
38.B Subject
39lines.
40
41.B qlist
42supports two commands.
43.B SUBSCRIBE
44adds a new subscription to the mailing list;
45.B UNSUBSCRIBE
46removes a subscription.
47.B qlist
48looks for the subscription address in the
49.BR Reply-To ,
50.BR From ,
51or
52.BR Return-Path
53fields in the message.
54
55.B qlist
56inserts an acknowledgment of each action it took,
57along with general help instructions, into the message.
58It then forwards the message to the subscription address,
59with a copy to
60.IR owner .
61
62.BR qlist 's
63general help instructions identify
64.I user-list@host
65as the address of the mailing list,
66.I user-list-request@host
67as the address of
68.B qlist
69itself, and
70.I owner
71as the address
72of the mailing list owner.
73If
74.I moreinfo
75is supplied,
76it is inserted into the middle of the instructions,
77surrounded by blank lines.
78
79.B qlist
80maintains its address list in
81.BR .qmail-\fIlist ,
82so mail to
83.I user-list
84will be forwarded to each subscription address.
85While
86.B qlist
87is editing
88.BR .qmail-\fIlist ,
89it locks
90.BR .qmail-\fIlist-request .
91It uses
92.B .qtemp-\fIlist
93as a temporary file.
94
95Note that
96.B qlist
97only manipulates lines beginning with an ampersand;
98if you manually add an address without an ampersand,
99it cannot be removed by
100.BR qlist .
101
102.B qlist
103automatically sets the execute bit on
104.BR qmail-\fIlist ,
105so
106.B qmail-local
107will ignore any program or file instructions in
108.BR qmail-\fIlist .
109.SH "SEE ALSO"
110dot-qmail(5),
111envelopes(5),
112qmail-queue(8)