diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-04-15 10:50:37 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-04-15 10:50:37 +0300 |
commit | 62939a1ac281025154e55f3be17b0b5d3e8fde25 (patch) | |
tree | 8d0ae616846075af86788b581ddfbfd19379482e /rules/misc.lua | |
parent | 45aeb65baa5793a1177bb823bd6bdd0b959d25f8 (diff) | |
download | rspamd-62939a1ac281025154e55f3be17b0b5d3e8fde25.tar.gz rspamd-62939a1ac281025154e55f3be17b0b5d3e8fde25.zip |
[Minor] Attach domain part to `R_SUSPICIOUS_URL`
Diffstat (limited to 'rules/misc.lua')
-rw-r--r-- | rules/misc.lua | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 87687720a..b3926e46b 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -83,24 +83,18 @@ rspamd_config.DATE_IN_PAST = function(task) return false end -rspamd_config.R_SUSPICIOUS_URL = { - callback = function(task) +rspamd_config.R_SUSPICIOUS_URL = function(task) local urls = task:get_urls() if urls then for i,u in ipairs(urls) do if u:is_obscured() then - return true + task:insert_result('R_SUSPICIOUS_URL', 1.0, u:get_host()) end end end return false - end, - score = 6.0, - group = 'url', - one_shot = true, - description = 'Obfusicated or suspicious URL has been found in a message' -} +end rspamd_config.SUBJ_ALL_CAPS = { callback = function(task) |