aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authortwesterhever <40121680+twesterhever@users.noreply.github.com>2024-04-28 09:43:44 +0000
committertwesterhever <40121680+twesterhever@users.noreply.github.com>2024-04-28 09:43:44 +0000
commit3e1c8da3e97ae1eaf2bb37ad9ef7c96c318baae7 (patch)
treec8bbbf15e2198f69d515f72aa798de9ae0401df9 /rules
parent65e43f908e39fe60707bdc345862151c7962a67d (diff)
downloadrspamd-3e1c8da3e97ae1eaf2bb37ad9ef7c96c318baae7.tar.gz
rspamd-3e1c8da3e97ae1eaf2bb37ad9ef7c96c318baae7.zip
[Minor] Add rule for presence of Content-Description header
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 6f163bcd1..f7e23501c 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -903,6 +903,13 @@ reconf['HAS_ORG_HEADER'] = {
group = 'headers'
}
+reconf['HAS_CD_HEADER'] = {
+ re = string.format('header_exists(Content-Description)'),
+ description = 'Has Content-Description header',
+ score = 0.0,
+ group = 'headers'
+}
+
reconf['X_PHPOS_FAKE'] = {
re = 'X-PHP-Originating-Script=/^\\d{7}:/Hi',
description = 'Fake X-PHP-Originating-Script header',