From: Vsevolod Stakhov Date: Tue, 17 Nov 2015 16:14:26 +0000 (+0000) Subject: SUSPICIOUS_IMAGES now trigger merely for embedded images X-Git-Tag: 1.1.0~539 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4bc17b845c9b31633b4c745a69da46978d598b6;p=thirdparty%2Frspamd.git SUSPICIOUS_IMAGES now trigger merely for embedded images --- diff --git a/rules/html.lua b/rules/html.lua index 2d52ebb521..cfec9d90b4 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