switch to new config objects

This commit is contained in:
2021-03-09 12:14:48 +01:00
parent 915fa509b5
commit b4986af1c2
8 changed files with 331 additions and 332 deletions

View File

@@ -111,12 +111,12 @@
#
"type": "add_header",
# Option: header
# Option: field
# Type: String
# Notes: Name of the header.
# Value: [ NAME ]
#
"header": "X-Test-Header",
"field": "X-Test-Header",
# Option: value
# Type: String
@@ -129,12 +129,12 @@
"type": "mod_header",
# Option: header
# Option: field
# Type: String
# Notes: Regular expression to match against header lines (e.g. Subject: Test-Subject).
# Value: [ REGEX ]
#
"header": "^Subject$",
"field": "^Subject$",
# Option: search
# Type: String
@@ -153,12 +153,12 @@
"type": "del_header",
# Option: header
# Option: field
# Type: String
# Notes: Regular expression to match against header lines (e.g. Subject: Test-Subject).
# Value: [ REGEX ]
#
"header": "^Received$"
"field": "^Received$"
}, {
"name": "add_disclaimer",
@@ -171,19 +171,19 @@
#
"action": "prepend",
# Option: html_file
# Option: html_template
# Type: String
# Notes: Path to a file which contains the html representation of the disclaimer.
# Value: [ FILE_PATH ]
#
"html_file": "/etc/pymodmilter/templates/disclaimer_html.template",
"html_template": "/etc/pymodmilter/templates/disclaimer_html.template",
# Option: text_file
# Option: text_template
# Type: String
# Notes: Path to a file which contains the text representation of the disclaimer.
# Value: [ FILE_PATH ]
#
"text_file": "/etc/pymodmilter/templates/disclaimer_text.template",
"text_template": "/etc/pymodmilter/templates/disclaimer_text.template",
# Option: error_policy
# Type: String