1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-01-03 03:59:16 +00:00

add option to skip footer on reply e-mails

This commit is contained in:
FreddleSpl0it
2023-12-22 10:39:07 +01:00
parent 515b85bb2f
commit efab11720d
7 changed files with 27 additions and 9 deletions

View File

@@ -567,6 +567,14 @@ 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
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")
return
end
end
local envfrom_mime = task:get_from(2)
local from_name = ""
if envfrom_mime and envfrom_mime[1].name then