소스 검색

[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 년 전
부모
커밋
c949b41dd7
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      rules/misc.lua

+ 5
- 1
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

Loading…
취소
저장