From: Vsevolod Stakhov Date: Wed, 28 Oct 2020 10:30:49 +0000 (+0000) Subject: [Minor] Add matches flag X-Git-Tag: 2.7~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1174a5b2213dfdd524b307bfec6471d728bc7a53;p=thirdparty%2Frspamd.git [Minor] Add matches flag --- diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index 5088f768d5..da779b5f40 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)