diff options
author | Steve Freegard <steve@stevefreegard.com> | 2016-04-26 13:06:41 +0100 |
---|---|---|
committer | Steve Freegard <steve@stevefreegard.com> | 2016-04-26 13:06:41 +0100 |
commit | acb628315e17319b8c1b9edb400de03e9e951eea (patch) | |
tree | 904de6d423e832f139aa5b823dbdd19efd4e2113 /rules | |
parent | f458792fe6e11d57f5f1f3ac7f0e1ac6948624c8 (diff) | |
download | rspamd-acb628315e17319b8c1b9edb400de03e9e951eea.tar.gz rspamd-acb628315e17319b8c1b9edb400de03e9e951eea.zip |
Add MISSING_FROM test
Diffstat (limited to 'rules')
-rw-r--r-- | rules/misc.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index a9b5fd94d..0707887f5 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -323,3 +323,15 @@ rspamd_config.RCVD_TLS_ALL = { group = "encryption" } +rspamd_config.MISSING_FROM = { + callback = function(task) + local from = task:get_header('From') + if from == nil or from == '' then + return true + end + return false + end, + score = 2.0, + group = 'headers', + description = 'Missing From: header' +} |