SA Bugzilla – Bug 149
Rule to detect large font sizes
Last modified: 2002-06-15 03:58:08 UTC
The following rule should detect font size of 3 or larger in HTML mail: rawbody BIG_FONT /<\s*FONT\s[^>]*size\s*=(?:3D)?\s*['\"]?\s*\+?(?:[3456789]|\d{2,})/i describe BIG_FONT A font size of 3 or larger Will also add an attachment, to get around formatting problems.
Created attachment 26 [details] Rule to detect font sizes of 3 or more
Isn't font size="3" meant to be the user's prefered font size? Seems a bit silly to penalise normal sized text.
Hmmm, right, I'd forgotten that there's a difference between size="3" and size="+3". However, size="3" rarely shows up in any of my non-spam, but is frequent in my spam. If you want to use the default size, then you don't need any font tag at all.
Would it be worth adding something to check for <h1>, <h2>, etc? I do see them showing up in some spams, sometimes in conjunction with large font sizes, just to make things _really_ big. Dan.
Created attachment 37 [details] Now detects font size "+2" and up or size "3" and up
in case no one else reassigns it ...
Checked into CVS.