Browse Source

[Fix] received: filtering of artificial header

tags/3.5
Kako, Chang 1 year ago
parent
commit
6d5db1e04e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      rules/headers_checks.lua
  2. 1
    1
      src/plugins/lua/once_received.lua

+ 1
- 1
rules/headers_checks.lua View File

@@ -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

+ 1
- 1
src/plugins/lua/once_received.lua View File

@@ -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)

Loading…
Cancel
Save