This commit fixes the inverted logic of skip_wanted/match_extended_headers_rcpt to allow a user to enable extended headers selectively for only a specific set of recipients.
end
- if settings.extended_headers_rcpt and match_extended_headers_rcpt() then
- return false
- end
-
if settings.skip_local and not settings.local_headers[hdr] then
local ip = task:get_ip()
if (ip and ip:is_local()) then return true end
if task:get_user() ~= nil then return true end
end
+ if settings.extended_headers_rcpt and not match_extended_headers_rcpt() then
+ return true
+ end
+
return false
end