From: Vsevolod Stakhov Date: Thu, 23 Jul 2015 16:26:30 +0000 (+0100) Subject: Tune R_EMPTY_IMAGE to avoid false positives. X-Git-Tag: 1.0.0~295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54fd0d2afbdfd60bca200ea99c116b3f72c03b04;p=thirdparty%2Frspamd.git Tune R_EMPTY_IMAGE to avoid false positives. --- diff --git a/conf/lua/html.lua b/conf/lua/html.lua index 161bbe3b58..951cc4952c 100644 --- a/conf/lua/html.lua +++ b/conf/lua/html.lua @@ -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