aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authorKako, Chang <49464540+kakochang@users.noreply.github.com>2023-01-12 14:12:01 +0800
committerKako, Chang <49464540+kakochang@users.noreply.github.com>2023-01-12 14:12:01 +0800
commit6d5db1e04e28e255356ad206adac4948b5092c1b (patch)
treece342b556987f98898d17b03fa52e118cdc85dfa /src/plugins/lua/once_received.lua
parentd784fa6f3deb8afbbab7c52d6ef891c45cd2c16b (diff)
downloadrspamd-6d5db1e04e28e255356ad206adac4948b5092c1b.tar.gz
rspamd-6d5db1e04e28e255356ad206adac4948b5092c1b.zip
[Fix] received: filtering of artificial header
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua2
1 files changed, 1 insertions, 1 deletions
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)