blob: 59ed93ad53787ad1082dbf85c511a6411f0375ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
Vnd.dovecot.environment Extension
Relevant specifications
=======================
doc/rfc/spec-bosch-sieve-dovecot-environment.txt
Description
===========
The "vnd.dovecot.environment" extension builds upon the existing standard
"environment" extension, which allows Sieve scripts to access information about
their execution context, such as the name and version of the Sieve interpreter
implementation. The new "vnd.dovecot.environment" extension adds a few more
environment items that can be accessed by Sieve scripts. Additionally, it makes
the environment items available directly as variables [VARIABLES].
Configuration
=============
The "vnd.dovecot.environment" extension is not available by default; it needs
to be added to the sieve_extensions or (rather) the sieve_global extensions
setting.
Currently, the "vnd.dovecot.environment" extension has no specific settings.
However, this extension adds environment items with a "vnd.dovecot.config."
prefix that can be used to access part of the Dovecot configuration. An
environment item named "vnd.dovecot.config.identifier" yields the value of a
plugin setting called "sieve_env_identifier".
Example
=======
With the following configuration:
plugin {
sieve = ~/.dovecot.sieve
sieve_env_reject_reason = Please don't mail me.
}
The following script will reject the message with the configured reason:
require "reject";
require "variables";
require "vnd.dovecot.environment";
reject "${vnd.dovecot.config.reject_reason}";
|