]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add matches flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Oct 2020 10:30:49 +0000 (10:30 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Oct 2020 10:31:06 +0000 (10:31 +0000)
lualib/lua_mime.lua

index 5088f768d58860c4db3792cf504fae3635cd13ff..da779b5f40517554e268e426559b1fe54f425c96 100644 (file)
@@ -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)