aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/misc.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index f4591c9a2..62fa7f92a 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -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