]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix tableshape usage, add cleanup rules method
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 6 Nov 2018 14:28:51 +0000 (14:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 6 Nov 2018 14:28:51 +0000 (14:28 +0000)
lualib/lua_fuzzy.lua

index e18f466a8a5f73258358f23a2afac1cead4bf6d9..ee5a84e62d708731dfe87963c157e85dc7cfe900 100644 (file)
@@ -55,10 +55,10 @@ local policy_schema = ts.shape{
   min_length = ts.number + ts.string / tonumber,
   text_multiplier = ts.number,
   mime_types = ts.array_of(ts.string),
-  scan_archives = ts.bool,
-  short_text_direct_hash = ts.bool,
-  text_shingles = ts.bool,
-  skip_imagess = ts.bool,
+  scan_archives = ts.boolean,
+  short_text_direct_hash = ts.boolean,
+  text_shingles = ts.boolean,
+  skip_imagess = ts.boolean,
 }
 
 
@@ -264,4 +264,8 @@ exports.check_mime_part = function(task, part, rule_id)
   return false,false
 end
 
+exports.cleanup_rules = function()
+  rules = {}
+end
+
 return exports
\ No newline at end of file