http://bugzilla.spamassassin.org/show_bug.cgi?id=1987





------- Additional Comments From [EMAIL PROTECTED]  2004-02-07 13:15 -------
And here my actual test rule for this, but I consider it little more
than a band-aid. Instead of calling an external program (tidy), we
might want to settle for a more simplified test that counts the number
of invalid HTML 3.0 tags encountered in a body.

# html tags that are seemingly invalid: no spaces, often very long - we'll 
react to 3 of them
rawbody __OBFUSC_INVALID_HTML_CUSTOM    /<[a-zA-Z0-9]{8,}>.*?<[a-zA-Z0-9]{8,}
>.*?<[a-zA-Z0-9]{8,}>/
# alternate: 8+ characters of non-whitespace, followed by anything (whitespace 
or nothing)
# rawbody __OBFUSC_INVALID_HTML_CUSTOM  /<\S{8,}.*?>.*?<\S{8,}.*?>.*?<\S{8,}.*?
>/
#
meta OBFUSC_INVALID_HTML_CUSTOM         (__OBFUSC_INVALID_HTML_CUSTOM && 
HTML_MESSAGE)
describe OBFUSC_INVALID_HTML_CUSTOM     Obfuscating invalid HTML tags (custom 
rule)
score OBFUSC_INVALID_HTML_CUSTOM        4.0




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to