Pārlūkot izejas kodu

[Rspamd] check if footer.skip_replies is not 0

FreddleSpl0it 1 gadu atpakaļ
vecāks
revīzija
90a7cff2c9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      data/conf/rspamd/lua/rspamd.local.lua

+ 1 - 1
data/conf/rspamd/lua/rspamd.local.lua

@@ -567,7 +567,7 @@ rspamd_config:register_symbol({
           if footer and type(footer) == "table" and (footer.html and footer.html ~= "" or footer.plain and footer.plain ~= "")  then
             rspamd_logger.infox(rspamd_config, "found domain wide footer for user %s: html=%s, plain=%s, vars=%s", uname, footer.html, footer.plain, footer.vars)
 
-            if footer.skip_replies then
+            if footer.skip_replies ~= 0 then
               in_reply_to = task:get_header_raw('in-reply-to')
               if in_reply_to then
                 rspamd_logger.infox(rspamd_config, "mail is a reply - skip footer")