aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sympa')
-rw-r--r--modules/sympa/files/scenari/open_web_only_notify6
-rw-r--r--modules/sympa/manifests/init.pp11
2 files changed, 15 insertions, 2 deletions
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,
}
}
-
}