From c4bc17b845c9b31633b4c745a69da46978d598b6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 17 Nov 2015 16:14:26 +0000 Subject: SUSPICIOUS_IMAGES now trigger merely for embedded images --- rules/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules') diff --git a/rules/html.lua b/rules/html.lua index 2d52ebb52..cfec9d90b 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -83,7 +83,7 @@ rspamd_config.R_EMPTY_IMAGE = { if images then -- if there are images for _,i in ipairs(images) do -- then iterate over images in the part - if i['height'] + i['width'] >= 400 then -- if we have a large image + if i['embedded'] and i['height'] + i['width'] >= 400 then -- if we have a large image return true -- add symbol end end -- cgit v1.2.3