Debianization and various other fixes.
[ezmlm] / ezmlmrc.cs
CommitLineData
f8beb284
MW
1#$Id: ezmlmrc.cs,v 1.8 1999/05/11 03:28:11 lindberg Exp $
2#$Name: ezmlm-idx-040 $
3#
4# ezmlmrc
5# #######
6# Controls the actions of ezmlm-make as patched with ezmlm-idx-0.31 or later.
7#
8# The base directory 'DIR' is always created by ezmlm-make, as is DIR/key.
9# Everything else is done from here.
10#
11# ezmlm-make looks for this file, first as .ezmlmrc in the directory that the
12# lists .qmail files will be placed in (if you've used the -c command line
13# switch), then /etc/ezmlmrc, then ezmlmrc in the ezmlm-make binary directory.
14# Thus, you can customize ezmlm-make on a global level by placing a customized
15# copy of ezmlmrc in /etc and on a user level by copying it to .ezmlmrc in
16# the user's home directory AND use the ezmlm-make -c switch.
17#
18# Tags are:
19# </filename/> : put succeeding text lines in DIR/filename
20# </-filename/> : erase DIR/filename.
21# </+dirname/> : create directory DIR/dirname
22# </:lname/dirname> : symlink DIR/.qmail-list-lname -> DIR/dirname
23#
24# The name in the tag can be suffixed with '#' and any number of flags,
25# corresponding to command line switches. The item will be created/extended
26# only if all the flags listed are set. Files can be extended as long as they
27# were the last one created, but not if another file has been started since
28# then. Flags that are not recognized are silently ignored.
29#
30# Thus, </filename#aP/> creates the file if and only if the list is archived
31# (-a) and not public (-P). If the next tag is </filename#m/>, the file is
32# extended with the lines up to the next tag if the list is message moderated
33# (-m). If the next tag is </another/>, 'filename' is closed. Any further
34# tags leading to the reopenining of 'filename' will overwrite the file, not
35# extend it.
36#
37# A set of user-defined command line switches (xX, yY, zZ) are available for
38# customization.
39#
40# Within the text, certain tags are substituted. Other tags are copied as
41# is. <#A#> and <#R#> are substituted by ezmlm-manage and -store (see man pages)
42# and <#l#> (lower case L) is replaced dynamically by the list name for
43# programs handling both 'list' and 'list-digest'.
44#
45# Substitutions are:
46# <#B#> ezmlm binaries path <#C#> digest code <#D#> dir
47# <#H#> host <#L#> local <#F#> flags
48# <#T#> dot <#0#> arg for -0. <#3#>...<#9#> arg for -3..9
49# <#1#> ext1 <#2#> ext2 [if dot is /path/.qmail-ext1-ext2-name]
50# The latter useful when a single user is controlling several virtual domains.
51#
52# -0 is used for the main list address when setting up sublists
53# -4 for specifying the ezmlm-tstdig switches used in dir/editor. Default
54# -k64 -m30 -t24. Only used if -g is used.
55# -5 for list-owner address. Mail to list-owner will be forwarded to this addr.
56# -6 for sql connection info
57# -7 for contents of DIR/modpost
58# -8 for contents of DIR/modsub
59# -9 for contents of DIR/remote
60#
61# For demonstration purposes, the '-x' switch results in the following
62# non-standard actions:
63# - Removal of many non-text MIME parts from messages.
64# - Limit posts to 2 bytes <= msg body size <= 40000
65#
66# Attempts to create links or directories that already exist, will result
67# in a FATAL error. Attempts to open files that have already been closed
68# or already exits, will cause the old file to be overwritten.
69#
70# One of the major problems with ezmlm-lists is DIR/inlocal. For normal
71# users, it is set up to the list name (user-list or so), which is correct.
72# However, for user 'ezmlm' in control of virtual domain 'host.dom.com'
73# the list name is 'list@host.dom.com', but inlocal should be 'ezmlm-list',
74# not 'list'. Similarly, if ezmlm-domain1 is in control of 'host.dom.com,
75# list@host.dom.com, should yield an inlocal of 'ezmlm-domain1-list'. To
76# always get the lists correct, place this file as '.ezmlmrc' in the
77# users home directory (~ezmlm/.ezmlmrc) and change the inlocal text below
78# to 'ezmlm-<#L#>' or 'ezmlm-<#1#>-<#L#>, respectively.
79# config to support future editing without giving ezmlm-make command line
80# arguments other than dir. Useful for GUI/WWW editing tools
81</config/>
82F:<#F#>
83D:<#D#>
84T:<#T#>
85L:<#L#>
86H:<#H#>
87C:<#C#>
880:<#0#>
893:<#3#>
904:<#4#>
915:<#5#>
926:<#6#>
937:<#7#>
948:<#8#>
959:<#9#>
96</charset/>
97# Explicitly specify character-set, when this ezmlmrc was used.
98# Use Quoted-Printable to make averyone happy.
99iso-8859-2:Q
100</inlocal/>
101<#L#>
102</sublist#0/>
103<#0#>
104</+archive/>
105</+subscribers/>
106</+bounce/>
107</+text/>
108# dirs for digests
109</+digest#d/>
110</+digest/subscribers#d/>
111</+digest/bounce#d/>
112# for extra address db
113</+allow/>
114</+allow/subscribers/>
115# for blacklist
116</+deny#k/>
117</+deny/subscribers#k/>
118# moderator db & mod queue dirs. Needed for -m, -r -s, so we just
119# make them by default.
120</+mod/>
121</+mod/subscribers/>
122</+mod/pending/>
123</+mod/accepted/>
124</+mod/rejected/>
125# links: dot -> dir/editor
126</:/editor/>
127</:-owner/owner/>
128</:-digest-owner/owner#d/>
129</:-return-default/bouncer/>
130</:-digest-return-default/digest/bouncer#d/>
131</:-default/manager/>
132# for message moderation only
133</:-accept-default/moderator#m/>
134</:-reject-default/moderator#m/>
135# Get rid of configuration flags for editing mode so we can start with a
136# clean slate.
137</-modpost#eM/>
138</-modsub#eS/>
139</-remote#eR/>
140</-public#eP/>
141</-indexed#eI/>
142</-archived#eA/>
143</-prefix#eF/>
144</-text/trailer#eT/>
145</-sublist#e^0/>
146</-mimeremove#eX/>
147# Not needed, except for message moderation.
148</-moderator#eM/>
149# We don't clean out text files to make it easier for users
150# doing manual config by e.g. touching dir/remote.
151# subscription moderation
152</modsub#s/>
153<#8#>
154# remote admin
155</remote#r/>
156<#9#>
157# message moderation
158</modpost#m/>
159<#7#>
160# List owner mail
161</owner#5/>
162<#5#>
163</owner#^5/>
164<#D#>/Mailbox
165</#W/>
166|<#B#>/ezmlm-warn '<#D#>' || exit 0
167# Handles subscription. Add flags if you want a non-default digest format.
168# Service subject commands to the # request address if the -q switch is given.
169# Also -l and -d enable subscriber listing/text file editing, for remote adms.
170# -u gives subscriber only archive access
171</manager#iG/>
172|<#B#>/ezmlm-get '<#D#>' <#C#>
173</manager#ig/>
174|<#B#>/ezmlm-get -s '<#D#>' <#C#>
175</manager#q/>
176|<#B#>/ezmlm-request '<#D#>'
177# Ok to add -l/-d even for non-mod lists, since ezmlm-manage
178# won't allow it unless there are remote admins.
179</manager#LN/>
180|<#B#>/ezmlm-manage '<#D#>'
181</manager#lN/>
182|<#B#>/ezmlm-manage -l '<#D#>'
183</manager#Ln/>
184|<#B#>/ezmlm-manage -e '<#D#>'
185</manager#ln/>
186|<#B#>/ezmlm-manage -le '<#D#>'
187</manager#W/>
188|<#B#>/ezmlm-warn '<#D#>' || exit 0
189</#dW/>
190|<#B#>/ezmlm-warn -d '<#D#>' || exit 0
191</editor/>
192# reject shouldn't be configured for sublist.
193</#^0/>
194# full reject is now default, to get To/Cc: listaddress requirement
195|<#B#>/ezmlm-reject '<#D#>'
196# -k => reject posts from blacklisted addresses. Done for moderated
197# lists as well - allows removal of unwanted noise.
198</#k^0/>
199