commit 1174a5b: [Minor] Add matches flag

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Oct 28 10:35:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-10-28 10:30:49 +0000
URL: https://github.com/rspamd/rspamd/commit/1174a5b2213dfdd524b307bfec6471d728bc7a53 (HEAD -> master)

[Minor] Add matches flag

---
 lualib/lua_mime.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua
index 5088f768d..da779b5f4 100644
--- a/lualib/lua_mime.lua
+++ b/lualib/lua_mime.lua
@@ -306,6 +306,7 @@ local function do_replacement (task, part, mp, replacements,
       return
     end
 
+    state.has_matches = true
     -- now sort flattened by start of match and eliminate all overlaps
     table.sort(matches_flattened, function(m1, m2) return m1[1][1] < m2[1][1] end)
 


More information about the Commits mailing list