authenticated_headers = {},
extended_headers_rcpt = {},
routines = {
+ ['remove-headers'] = {
+ headers = {},
+ },
+ ['add-headers'] = {
+ headers = {},
+ remove = 1,
+ },
['remove-header'] = {
remove = 1,
},
end
end
+ routines['remove-headers'] = function()
+ if skip_wanted('remove-headers') then return end
+ for h, r in pairs(settings.routines['remove-headers'].headers) do
+ remove[h] = r
+ end
+ end
+
+ routines['add-headers'] = function()
+ if skip_wanted('add-headers') then return end
+ for h, r in pairs(settings.routines['add-headers'].headers) do
+ add[h] = r
+ remove[h] = settings.routines['add-headers'].remove
+ end
+ end
+
routines['x-rspamd-server'] = function()
if skip_wanted('x-rspamd-server') then return end
if settings.routines['x-rspamd-server'].remove then