summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/headers_checks.lua2
-rw-r--r--src/plugins/lua/once_received.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua
index d88847003..7a02bc2eb 100644
--- a/rules/headers_checks.lua
+++ b/rules/headers_checks.lua
@@ -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
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 0fe738d63..04e2168c1 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -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)