From 75314e8b58fe51ee88ee36354d40d73991474169 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 13 Dec 2010 23:55:08 +0000 Subject: create the scenari for subscription ( web only ) --- modules/sympa/files/scenari/open_web_only_notify | 6 ++++++ modules/sympa/manifests/init.pp | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 modules/sympa/files/scenari/open_web_only_notify (limited to 'modules/sympa') diff --git a/modules/sympa/files/scenari/open_web_only_notify b/modules/sympa/files/scenari/open_web_only_notify new file mode 100644 index 00000000..9c0b1dbc --- /dev/null +++ b/modules/sympa/files/scenari/open_web_only_notify @@ -0,0 +1,6 @@ +title.gettext anyone on the web, notification is sent to list owner + +# do not notify if it is just an update +is_subscriber([listname],[sender]) smtp,smime,md5 -> do_it +true() md5 -> do_it,notify + diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp index ab818dd0..825df0a6 100644 --- a/modules/sympa/manifests/init.pp +++ b/modules/sympa/manifests/init.pp @@ -85,6 +85,15 @@ class sympa { mode => 755, } + file { ["/etc/sympa/scenari/subscribe.open_web_only_notify", + "/etc/sympa/scenari/unsubscribe.open_web_only_notify"]: + ensure => present, + owner => root, + group => root, + mode => 755, + source => "puppet:///modules/sympa/scenari/open_web_only_notify", + } + define ldap_search_filter { file { "/etc/sympa/search_filters/ldap-$name.ldap": ensure => present, @@ -206,7 +215,6 @@ class sympa { reply_to => $reply_to, sender_ldap_group => $sender_ldap_group, } - } @@ -282,6 +290,5 @@ class sympa { public_archive => false, } } - } -- cgit v1.2.1