From 392967d6647da44db6fd7f8111d3c98f7032e6bc Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Tue, 21 Nov 2023 10:19:00 +0100 Subject: [PATCH] [Rspamd] domain wide footer check for empty strings --- data/conf/rspamd/lua/rspamd.local.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/conf/rspamd/lua/rspamd.local.lua b/data/conf/rspamd/lua/rspamd.local.lua index c255ea8a..459b2339 100644 --- a/data/conf/rspamd/lua/rspamd.local.lua +++ b/data/conf/rspamd/lua/rspamd.local.lua @@ -564,7 +564,7 @@ rspamd_config:register_symbol({ else local footer = parser:get_object() - if footer and type(footer) == "table" and (footer.html or footer.plain) then + 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", uname, footer.html, footer.plain) local envfrom_mime = task:get_from(2)