1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00

[Rspamd] domain wide footer check for empty strings

This commit is contained in:
FreddleSpl0it 2023-11-21 10:19:00 +01:00
parent 3b3c2b7141
commit 392967d664
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -564,7 +564,7 @@ rspamd_config:register_symbol({
else else
local footer = parser:get_object() 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) 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) local envfrom_mime = task:get_from(2)