]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Multimap: received: filtering of artificial header
authorAndrew Lewis <nerf@judo.za.org>
Tue, 12 Dec 2017 12:03:01 +0000 (14:03 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 12 Dec 2017 12:09:10 +0000 (14:09 +0200)
src/plugins/lua/multimap.lua

index 584978453aa34b05fb279cb15023739b0a77c014..252c592ff405db5ec30853e469cc929c26212261 100644 (file)
@@ -792,7 +792,7 @@ local function multimap_callback(task, rule)
       if hdrs and hdrs[1] then
         if not rule['artificial'] then
           hdrs = fun.filter(function(h)
-            return not h['artificial']
+            return not h['flags']['artificial']
           end, hdrs):totable()
         end
         for pos, h in ipairs(hdrs) do