aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_mime.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-28 10:30:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-28 10:31:06 +0000
commit1174a5b2213dfdd524b307bfec6471d728bc7a53 (patch)
treeda6c88daa2578b225e8406bc16e2f221e25d3e93 /lualib/lua_mime.lua
parent8b4e5039638c4aa9039585b524dcc103ee321ab1 (diff)
downloadrspamd-1174a5b2213dfdd524b307bfec6471d728bc7a53.tar.gz
rspamd-1174a5b2213dfdd524b307bfec6471d728bc7a53.zip
[Minor] Add matches flag
Diffstat (limited to 'lualib/lua_mime.lua')
-rw-r--r--lualib/lua_mime.lua1
1 files changed, 1 insertions, 0 deletions
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)