]> source.dussan.org Git - rspamd.git/commitdiff
Tune R_EMPTY_IMAGE to avoid false positives.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Jul 2015 16:26:30 +0000 (17:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Jul 2015 16:26:30 +0000 (17:26 +0100)
conf/lua/html.lua

index 161bbe3b581109f17bb31a0280aaa1b6311d0416..951cc4952c413dcc28ebbe3445709a7024556f92 100644 (file)
@@ -58,9 +58,9 @@ rspamd_config.R_EMPTY_IMAGE = function(task)
   for _,p in ipairs(tp) do
     if p:is_html() then
       local hc = p:get_html()
-      local lines = p:get_lines_count()
+      local len = p:get_length()
       
-      if lines < 5 then
+      if len < 50 then
         local images = hc:get_images()
         
         if images then