From: Vsevolod Stakhov Date: Thu, 19 Sep 2019 11:04:58 +0000 (+0100) Subject: [Minor] Fix parts iteration X-Git-Tag: 2.0~177 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf5f32f82d65cba399c65c42b3b322294c692f6f;p=rspamd.git [Minor] Fix parts iteration --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index f3c647f15..284a05198 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -864,7 +864,7 @@ local function multimap_callback(task, rule) return p:is_attachment() or (not p:is_text()) and (not p:is_multipart()) end - for p in fun.iter(fun.filter(filter_parts, parts)) do + for _,p in fun.iter(fun.filter(filter_parts, parts)) do if p:is_archive() and not rule['skip_archives'] then local fnames = p:get_archive():get_files()