File: editheader.txt

package info (click to toggle)
dovecot 1:2.2.13-12~deb8u4
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 38,792 kB
  • sloc: ansic: 341,472; sh: 16,920; makefile: 5,393; cpp: 1,474; perl: 265; xml: 44; python: 34; pascal: 27
file content (51 lines) | stat: -rw-r--r-- 1,509 bytes parent folder | download | duplicates (3)
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
49
50
51
Editheader Extension

Relevant specifications
=======================

  RFC5293 - doc/rfc/editheader.rfc5293.txt

Description
===========

The editheader extension [RFC5293] enables sieve scripts to interact with other
components that consume or produce header fields by allowing the script to
delete and add header fields.

Configuration
=============

The editheader is not available by default and needs to be enabled explicitly by
adding it to the sieve_extensions setting.

The following settings can be configured for the editheader extension (default
values are indicated):

sieve_editheader_max_header_size = 2048
  The maximum size in bytes of a header field value passed to the addheader
  command. The minimum value for this setting is 1024 bytes. The value is in
  bytes, unless followed by a k(ilo).

sieve_editheader_protected =
  A space-separated list of headers that cannot be added to nor removed from the
  message header. The `Received:' and `Auto-Submitted:' fields are always
  protected and the `Subject:' header cannot be protected, as required by the
  RFC specification; adding one of these headers to this setting has no effect.

Invalid values for the settings above will make the Sieve interpreter log
a warning and revert to the default values.

Example
=======

plugin {
  # Use editheader
  sieve_extensions = +editheader

  # Header fiels must not exceed one 1k
  sieve_editheader_max_header_size = 1k

  # Protect special header
  sieve_editheader_protected = X-Verified
}