commit bf5f32f: [Minor] Fix parts iteration

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Sep 19 11:14:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-19 12:04:58 +0100
URL: https://github.com/rspamd/rspamd/commit/bf5f32f82d65cba399c65c42b3b322294c692f6f

[Minor] Fix parts iteration

---
 src/plugins/lua/multimap.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the Commits mailing list