diff options
Diffstat (limited to 'src/plugins/lua/settings.lua')
-rw-r--r-- | src/plugins/lua/settings.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index 54b6d65cd..3e8b6d2af 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -83,6 +83,14 @@ local function check_query_settings(task) local elt = settings_ids[id_str] if elt and elt['apply'] then task:set_settings(elt['apply']) + + if elt.apply['add_headers'] or elt.apply['remove_headers'] then + local rep = { + add_headers = elt.apply['add_headers'] or {}, + remove_headers = elt.apply['remove_headers'] or {}, + } + task:set_rmilter_reply(rep) + end rspamd_logger.infox(task, "applying settings id %s", id_str) return true |