https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7778
Bug ID: 7778
Summary: T_KAM_HTML_FONT_INVALID false positive for "inherit"
Product: Spamassassin
Version: 3.4.2
Hardware: PC
OS: Windows 7
Status: NEW
Severity: minor
Priority: P2
Component: Rules (Eval Tests)
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
The test eval:html_test('font_invalid_color') for the rule
T_KAM_HTML_FONT_INVALID triggers for the color value "inherit" in CSS style
attributes.
Since "inherit" is a valid value for a CSS color (or for any CSS property) you
might consider it in /lib/Mail/SpamAssassin/HTML.pm
On my system I put the exception
elsif ($value =~ /inherit/) {
# do nothing, just prevent parsing of the valid
# CSS3 property value as 'invalid color'
}
in line 534 of HTML.pm, and for me this clearly reduced matches of
T_KAM_HTML_FONT_INVALID in good mails more than in spam mails over the last few
weeks.
--
You are receiving this mail because:
You are the assignee for the bug.