http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5369
Summary: HTML_TINY_FONT too broad
Product: Spamassassin
Version: 3.1.8
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Rules
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
20_html_tests.cf:rawbody HTML_TINY_FONT /\<.*font\-size\:[ \"]*[01][^0-9]+.*\>/i
20_html_tests.cf:describe HTML_TINY_FONT body contains 1 or 0-point font
50_scores.cf:score HTML_TINY_FONT 2.607 1.425 3.393 2.324
I'm seeing lots of FP related to HTML_TINY_FONT (score 3.4) driving the score
up. Either the score is too high or the pattern to broad. For example
<div align="center" style="font-size:0.8em;">
is perfectly visible print, but triggers HTML_TINY_FONT.
I would suggest refining the pattern. One possible would be
/\<.*font\-size\:[ \"]*(?:1pt|0(?:\.[01][0-9]*)?[^.0-9]+).*\>/i
The above should match
0pt
1pt
0em
0.0em
0.0123em
0.1em
while exclude
2pt (is it readable?)
3pt (is it readable?)
0.2em (is it readable?)
0.8em (readable)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.