summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-06-18 10:07:00 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-06-18 11:22:57 +0200
commitc85dd2472e3cd5469d5b94d113c8a0dd5e36480a (patch)
tree05736d962e0aa455bafac8bd0595e0e07861fb4d /conf
parent0769049b074e609b1933e71e5f890991009eae40 (diff)
downloadpykolab-c85dd2472e3cd5469d5b94d113c8a0dd5e36480a.tar.gz
Append signatures from files, or templates using LDAP information and conditionals.
Summary: Resolves T1279 Test Plan: None Reviewers: #pykolab_developers, machniak Maniphest Tasks: T1279 Differential Revision: https://git.kolab.org/D167
Diffstat (limited to 'conf')
-rw-r--r--conf/kolab.conf48
-rw-r--r--conf/signature_IT.html13
-rw-r--r--conf/signature_IT.txt9
3 files changed, 67 insertions, 3 deletions
diff --git a/conf/kolab.conf b/conf/kolab.conf
index 4b590b9..afe318f 100644
--- a/conf/kolab.conf
+++ b/conf/kolab.conf
@@ -428,9 +428,51 @@ admin_password = Welcome123
result_attribute = mail
[wallace]
-modules = resources, invitationpolicy, footer
-footer_text = /etc/kolab/footer.text
-footer_html = /etc/kolab/footer.html
+; List the modules to load and apply, in order.
+;
+; Available modules include;
+;
+; * resources
+; * invitationpolicy
+; * footer
+; * signature
+;
+modules = resources, invitationpolicy
+
+; Footer module settings
+;footer_text = /etc/kolab/footer.text
+;footer_html = /etc/kolab/footer.html
+
+; Signature module settings
+;
+; Two modes: write out the exact signature in /etc/kolab/ as html and/or text,
+; or use rules.
+;
+; If files are configured, rules do not apply. If files are configured, a
+; fallback is /etc/kolab/signature_default.{html,txt}.
+;
+; signature_file_html = /etc/kolab/signature.d/%(mail)s.html
+; signature_file_text = /etc/kolab/signature.d/%(mail)s.txt
+;
+; A list of dicts, with each dict holding an attribute name ("o", "cn",
+; "entrydn"), and a regular expression to be matched against the attribute
+; value.
+;
+; The module takes the first match, and uses the "html" and "text" files as
+; templates.
+;
+;signature_rules = [
+; {
+; "entrydn": "uid=.*,ou=IT,ou=People,dc=example,dc=org",
+; "html": "/etc/kolab/signature_IT.html",
+; "text": "/etc/kolab/signature_IT.txt"
+; },
+; {
+; "entrydn": "uid=.*,ou=Finance,ou=People,dc=example,dc=org",
+; "html": "/etc/kolab/signature_Finance.html",
+; "text": "/etc/kolab/signature_Finance.txt"
+; }
+; ]
; default settings for kolabInvitationPolicy LDAP attribute on user records
kolab_invitation_policy = ACT_ACCEPT_IF_NO_CONFLICT:example.org, ACT_MANUAL
diff --git a/conf/signature_IT.html b/conf/signature_IT.html
new file mode 100644
index 0000000..07ad4dd
--- /dev/null
+++ b/conf/signature_IT.html
@@ -0,0 +1,13 @@
+<br clear="all"/>
+<hr>
+This is an example HTML signature.
+
+<p style="font-size: small; color: gray;">
+%(o)s
+
+%(manager:cn)s
+
+M: %(mobile)s
+T: %(telephonenumber)s
+W: https://it.services.inc
+</p>
diff --git a/conf/signature_IT.txt b/conf/signature_IT.txt
new file mode 100644
index 0000000..53fd640
--- /dev/null
+++ b/conf/signature_IT.txt
@@ -0,0 +1,9 @@
+This is an example TEXT signature.
+
+%(o)s
+
+%(manager:cn)s
+
+M: %(mobile)s
+T: %(telephonenumber)s
+W: https://it.services.inc