clone from private repo
This commit is contained in:
commit
c0ae983acb
48 changed files with 2766 additions and 0 deletions
40
mail_system/templates/dovecot/README_before
Normal file
40
mail_system/templates/dovecot/README_before
Normal file
|
@ -0,0 +1,40 @@
|
|||
# THIS FILE IS CONTROLLED BY ANSIBLE - DO NOT CHANGE IN DEPLOYMENT!
|
||||
|
||||
|
||||
Sieve scripts that will be run before user scripts.
|
||||
|
||||
Don't forget to compile the script with
|
||||
|
||||
sievec /etc/dovecot/sieve_before/{name}.sieve
|
||||
|
||||
and
|
||||
|
||||
chown mailstore: /etc/dovecot/sieve_before/{name}.*
|
||||
|
||||
|
||||
You may use regular Sieve extensions, but also Dovecot-specific Sieve extensions,
|
||||
cf. https://wiki2.dovecot.org/Pigeonhole/Sieve .
|
||||
|
||||
(Note: We made vnd.dovecot.{pipe,filter,execute} available only in the global context,
|
||||
they cannot be used by users.)
|
||||
|
||||
|
||||
Example:
|
||||
|
||||
require ["vnd.dovecot.filter", "vnd.dovecot.execute", "variables", "envelope", "subaddress"];
|
||||
|
||||
if execute :output "out" :pipe "copy_to_matrix" {
|
||||
filter "test" "${out}";
|
||||
}
|
||||
|
||||
if envelope :matches :detail "to" "*" {
|
||||
set "x" "${1}";
|
||||
}
|
||||
|
||||
filter "test" "${x}";
|
||||
|
||||
if envelope :matches :user "to" "*" {
|
||||
set "y" "${1}";
|
||||
}
|
||||
|
||||
filter "test" "${y}";
|
Loading…
Add table
Add a link
Reference in a new issue