Quarantine regex matches headers case insensitive

This commit is contained in:
2019-09-03 15:55:41 +02:00
parent aa72e06ce7
commit d9da6f037b
3 changed files with 3 additions and 3 deletions

View File

@@ -357,7 +357,7 @@ def generate_milter_config(configtest=False, config_files=[]):
# pre-compile regex
logger.debug("{}: compiling regex '{}'".format(quarantine_name, config["regex"]))
config["regex_compiled"] = re.compile(config["regex"], re.MULTILINE + re.DOTALL)
config["regex_compiled"] = re.compile(config["regex"], re.MULTILINE + re.DOTALL + re.IGNORECASE)
# create quarantine instance
quarantine_type = config["quarantine_type"].lower()