Browse Source

[Minor] Skip modifying headers for skipped tasks

tags/3.2
Vsevolod Stakhov 2 years ago
parent
commit
659b274e0f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lualib/lua_mime.lua

+ 4
- 0
lualib/lua_mime.lua View File

@@ -515,6 +515,10 @@ end
-- Adds/removes headers both internal and in the milter reply
--]]
exports.modify_headers = function(task, hdr_alterations)
if task:has_flag('skip') then
-- Cannot set flags for skipped (and unprocessed) task
return
end
local add = hdr_alterations.add or {}
local remove = hdr_alterations.remove or {}


Loading…
Cancel
Save