From 8383ba5e9ceca7e95be56d6b11205339202b98e3 Mon Sep 17 00:00:00 2001 From: Michael Kuron Date: Mon, 28 Aug 2017 20:27:53 +0200 Subject: [PATCH] Rspamd user settings: fix From header match The request_header regex appears to not be expected to be encapsulated in slashes and does not seem to accept flags. --- data/conf/rspamd/dynmaps/settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/conf/rspamd/dynmaps/settings.php b/data/conf/rspamd/dynmaps/settings.php index 9291a014..d6ca8a53 100644 --- a/data/conf/rspamd/dynmaps/settings.php +++ b/data/conf/rspamd/dynmaps/settings.php @@ -192,7 +192,7 @@ while ($row = array_shift($rows)) { $value_sane = preg_replace("/\.\./", ".", (preg_replace("/\*/", ".*", $grouped_lists[0]))); ?> request_header = { - "From" = "/()/i"; + "From" = "()"; } request_header = { - "From" = "/()/i"; + "From" = "()"; }