]> source.dussan.org Git - rspamd.git/commitdiff
Add XM_CASE rule
authorSteve Freegard <steve@stevefreegard.com>
Mon, 19 Mar 2018 11:56:20 +0000 (11:56 +0000)
committerSteve Freegard <steve@stevefreegard.com>
Mon, 19 Mar 2018 11:56:20 +0000 (11:56 +0000)
rules/headers_checks.lua

index 0a7a3c16eb05d0a586b4460f5656806af893c3d5..a97d7483ff3d43f8b928bf2b48fb2b3150787fbc 100644 (file)
@@ -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',
+}