173 |
define list($subject, |
define list($subject, |
174 |
$profile = false, |
$profile = false, |
175 |
$language = 'en', |
$language = 'en', |
176 |
|
$topics = false, |
177 |
$reply_to = false, |
$reply_to = false, |
178 |
$sender_email = false, |
$sender_email = false, |
179 |
$sender_ldap_group = false, |
$sender_ldap_group = false, |
233 |
# various types of list that can be directly used |
# various types of list that can be directly used |
234 |
# |
# |
235 |
# |
# |
236 |
define public_list($subject, $language = 'en') { |
define public_list($subject, $language = 'en', $topics = false) { |
237 |
list { $name: |
list { $name: |
238 |
subject => $subject, |
subject => $subject, |
239 |
# profile => "public", |
# profile => "public", |
243 |
|
|
244 |
# list where announce are sent by member of ldap_group |
# list where announce are sent by member of ldap_group |
245 |
# reply_to is set to $reply_to |
# reply_to is set to $reply_to |
246 |
define announce_list_group($subject, $reply_to, $sender_ldap_group, $language = 'en') { |
define announce_list_group($subject, $reply_to, $sender_ldap_group, $language = 'en', $topics = false) { |
247 |
# profile + scenario |
# profile + scenario |
248 |
list{ $name: |
list{ $name: |
249 |
subject => $subject, |
subject => $subject, |
257 |
|
|
258 |
# list where announce are sent by $email only |
# list where announce are sent by $email only |
259 |
# reply_to is set to $reply_to |
# reply_to is set to $reply_to |
260 |
define announce_list_email($subject, $reply_to, $sender_email, $language = 'en') { |
define announce_list_email($subject, $reply_to, $sender_email, $language = 'en', $topics = false) { |
261 |
list{ $name: |
list{ $name: |
262 |
subject => $subject, |
subject => $subject, |
263 |
profile => "", |
profile => "", |
269 |
|
|
270 |
# list where people cannot subscribe, where people from $ldap_group receive |
# list where people cannot subscribe, where people from $ldap_group receive |
271 |
# mail, with public archive |
# mail, with public archive |
272 |
define restricted_list($subject, $subscriber_ldap_group, $language = 'en') { |
define restricted_list($subject, $subscriber_ldap_group, $language = 'en', $topics = false) { |
273 |
list{ $name: |
list{ $name: |
274 |
subject => $subject, |
subject => $subject, |
275 |
profile => "", |
profile => "", |
280 |
} |
} |
281 |
|
|
282 |
# same as restricted list, but anybody can post |
# same as restricted list, but anybody can post |
283 |
define restricted_list_open($subject, $subscriber_ldap_group, $language = 'en') { |
define restricted_list_open($subject, $subscriber_ldap_group, $language = 'en', $topics = false) { |
284 |
list{ $name: |
list{ $name: |
285 |
subject => $subject, |
subject => $subject, |
286 |
profile => "", |
profile => "", |
291 |
} |
} |
292 |
|
|
293 |
# list with private archive, restricted to member of $ldap_group |
# list with private archive, restricted to member of $ldap_group |
294 |
define private_list($subject, $subscriber_ldap_group, $language ='en') { |
define private_list($subject, $subscriber_ldap_group, $language ='en', $topics = false) { |
295 |
list{ $name: |
list{ $name: |
296 |
subject => $subject, |
subject => $subject, |
297 |
profile => "", |
profile => "", |
305 |
# list with private archive, restricted to member of $ldap_group |
# list with private archive, restricted to member of $ldap_group |
306 |
# everybody can post |
# everybody can post |
307 |
# used for contact alias |
# used for contact alias |
308 |
define private_list_open($subject, $subscriber_ldap_group, $language ='en') { |
define private_list_open($subject, $subscriber_ldap_group, $language ='en', $topics = false) { |
309 |
list{ $name: |
list{ $name: |
310 |
subject => $subject, |
subject => $subject, |
311 |
profile => "", |
profile => "", |
317 |
|
|
318 |
# same as private_list, but post are restricted to $email |
# same as private_list, but post are restricted to $email |
319 |
# ( scripting ) |
# ( scripting ) |
320 |
define private_list_email($subject, $subscriber_ldap_group, $sender_email, $language ='en') { |
define private_list_email($subject, $subscriber_ldap_group, $sender_email, $language ='en', $topics = false) { |
321 |
list{ $name: |
list{ $name: |
322 |
subject => $subject, |
subject => $subject, |
323 |
profile => "", |
profile => "", |