From: Vsevolod Stakhov Date: Tue, 1 Nov 2016 13:20:58 +0000 (+0000) Subject: [Feature] Consider more tags when doing WHITE_ON_WHITE rule X-Git-Tag: 1.4.0~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f809803e8ed239d6f9242c9837333414e077b620;p=thirdparty%2Frspamd.git [Feature] Consider more tags when doing WHITE_ON_WHITE rule --- diff --git a/rules/html.lua b/rules/html.lua index f81fc56ef6..67f45168eb 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -184,10 +184,11 @@ rspamd_config.R_WHITE_ON_WHITE = { normal_len = p:get_length() local hc = p:get_html() -- we get HTML context - hc:foreach_tag('font', function(tag, len) + hc:foreach_tag({'font', 'span', 'div', 'p'}, function(tag, len) local bl = tag:get_extra() if bl then if bl['bgcolor'] and bl['color'] then + local color = bl['color'] local bgcolor = bl['bgcolor'] -- Should use visual approach here some day