Browse Source

[Feature] Improve URL_IN_SUBJECT rule

We penalise now this rule's weight when URL found has no schema.
tags/1.7.3
Vsevolod Stakhov 6 years ago
parent
commit
c949b41dd7
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      rules/misc.lua

+ 5
- 1
rules/misc.lua View File

@@ -393,7 +393,11 @@ rspamd_config.URL_IN_SUBJECT = {

if urls then
for _,u in ipairs(urls) do
if u:is_subject() then
local flags = u:get_flags()
if flags.subject then
if flags.schemaless then
return true,0.1,u:get_host()
end
local subject = task:get_subject()

if subject then

Loading…
Cancel
Save