aboutsummaryrefslogtreecommitdiffstats
path: root/rules/headers_checks.lua
diff options
context:
space:
mode:
authorSteve Freegard <steve@stevefreegard.com>2018-03-19 11:56:20 +0000
committerSteve Freegard <steve@stevefreegard.com>2018-03-19 11:56:20 +0000
commit208ef50997462a0f3b7c21d2f8bc96bf0b1f2a01 (patch)
treeb7bd039fe22d82c77197c3f32b0ae58e6208ccfb /rules/headers_checks.lua
parent8102f9c77e04fdbf63619f8e9d90c263078d5bcc (diff)
downloadrspamd-208ef50997462a0f3b7c21d2f8bc96bf0b1f2a01.tar.gz
rspamd-208ef50997462a0f3b7c21d2f8bc96bf0b1f2a01.zip
Add XM_CASE rule
Diffstat (limited to 'rules/headers_checks.lua')
-rw-r--r--rules/headers_checks.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua
index 0a7a3c16e..a97d7483f 100644
--- a/rules/headers_checks.lua
+++ b/rules/headers_checks.lua
@@ -1033,3 +1033,13 @@ rspamd_config.INVALID_RCPT_8BIT = {
score = 6.0,
group = 'headers'
}
+
+rspamd_config.XM_CASE = {
+ callback = function (task)
+ local xm = task:get_header('X-mailer', true)
+ if (xm) then return true end
+ end,
+ description = 'X-mailer .vs. X-Mailer',
+ score = 0.5,
+ group = 'headers',
+}