diff options
Diffstat (limited to 'rules/html.lua')
-rw-r--r-- | rules/html.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rules/html.lua b/rules/html.lua index c77ac10f3..7cc0ccc91 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -173,13 +173,12 @@ rspamd_config.R_WHITE_ON_WHITE = { local tp = task:get_text_parts() -- get text parts in a message local ret = false local diff = 0.0 - local normal_len = 0 local transp_rate = 0 local arg for _,p in ipairs(tp) do -- iterate over text parts array using `ipairs` if p:is_html() and p:get_html() then -- if the current part is html part - normal_len = p:get_length() + local normal_len = p:get_length() local transp_len = 0 local hc = p:get_html() -- we get HTML context |