aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-14 18:29:32 +0000
committerMichael Scherer <misc@mageia.org>2010-12-14 18:29:32 +0000
commit66a5e45dae9612e3fc56a4e273e2609cfd582729 (patch)
tree04875a0b020c4729960916b97b0b92c2af246fd4
parent850c7fb4e9d6295d1457fc128f510b30399d9eef (diff)
downloadpuppet-66a5e45dae9612e3fc56a4e273e2609cfd582729.tar
puppet-66a5e45dae9612e3fc56a4e273e2609cfd582729.tar.gz
puppet-66a5e45dae9612e3fc56a4e273e2609cfd582729.tar.bz2
puppet-66a5e45dae9612e3fc56a4e273e2609cfd582729.tar.xz
puppet-66a5e45dae9612e3fc56a4e273e2609cfd582729.zip
add 2 missings scenari, one to restrict sender to a specific email,
another one for ldap group
-rw-r--r--modules/sympa/templates/scenari/sender.email5
-rw-r--r--modules/sympa/templates/scenari/sender.ldap_group5
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/sympa/templates/scenari/sender.email b/modules/sympa/templates/scenari/sender.email
new file mode 100644
index 00000000..7377b2de
--- /dev/null
+++ b/modules/sympa/templates/scenari/sender.email
@@ -0,0 +1,5 @@
+title.gettext restricted to email <%= name %>
+
+equal([sender], <%= name %>) smtp,md5,smime -> do_it
+true() smtp,md5,smime -> reject(reason='send_subscriber')
+
diff --git a/modules/sympa/templates/scenari/sender.ldap_group b/modules/sympa/templates/scenari/sender.ldap_group
new file mode 100644
index 00000000..d1abe66d
--- /dev/null
+++ b/modules/sympa/templates/scenari/sender.ldap_group
@@ -0,0 +1,5 @@
+title.gettext restricted to group <%= name %>
+
+search(<%= name %>.ldap) smtp,md5,smime -> do_it
+true() smtp,md5,smime -> reject(reason='send_subscriber')
+