Skip to content

Commit

Permalink
Merge pull request #4367 from kakochang/patch-fix-received-count
Browse files Browse the repository at this point in the history
[Fix] received: filtering of artificial header
  • Loading branch information
vstakhov committed Jan 12, 2023
2 parents d784fa6 + 6d5db1e commit 624d66b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules/headers_checks.lua
Expand Up @@ -42,7 +42,7 @@ local rcvd_cb_id = rspamd_config:register_symbol{
local nreceived = fun.reduce(function(acc, rcvd)
return acc + 1
end, 0, fun.filter(function(h)
return not h['artificial']
return not h['flags']['artificial']
end, received))

for k,v in pairs(cnts) do
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/lua/once_received.lua
Expand Up @@ -44,7 +44,7 @@ local function check_quantity_received (task)
local nreceived = fun.reduce(function(acc, _)
return acc + 1
end, 0, fun.filter(function(h)
return not h['artificial']
return not h['flags']['artificial']
end, recvh))

local function recv_dns_cb(_, to_resolve, results, err)
Expand Down

0 comments on commit 624d66b

Please sign in to comment.