Mailing List Archive

svn commit: rev 6689 - incubator/spamassassin/trunk/rules
Author: quinlan
Date: Mon Feb 16 01:11:09 2004
New Revision: 6689

Modified:
incubator/spamassassin/trunk/rules/70_testing.cf
Log:
some more HTML test rules


Modified: incubator/spamassassin/trunk/rules/70_testing.cf
==============================================================================
--- incubator/spamassassin/trunk/rules/70_testing.cf (original)
+++ incubator/spamassassin/trunk/rules/70_testing.cf Mon Feb 16 01:11:09 2004
@@ -545,3 +545,22 @@
# anything not an address
header __HAS_MSN_FROM2 From:addr =~ /(?:hotmail|msn)\.com/i
meta T_FAKED_HOTMAIL_DAV (__HAS_MSN_RCVD_DAV && __HAS_MSN_ORIG_EMAIL && !__HAS_MSN_FROM2)
+
+# some HTML rules to try
+body T_HTML_TAG_BALANCE_FONT_0 eval:html_tag_balance('font', '!= 0')
+describe T_HTML_TAG_BALANCE_FONT_0 HTML has unbalanced "font" tags
+
+body T_HTML_TAG_BALANCE_FONT_1 eval:html_tag_balance('font', '> 0')
+describe T_HTML_TAG_BALANCE_FONT_1 HTML is missing "font" close tags
+
+body T_HTML_TAG_BALANCE_FONT_2 eval:html_tag_balance('font', '> 1')
+describe T_HTML_TAG_BALANCE_FONT_2 HTML is missing some "font" close tags
+
+body T_HTML_TAG_BALANCE_DIV_0 eval:html_tag_balance('div', '< 0')
+describe T_HTML_TAG_BALANCE_DIV_0 HTML has excess "div" tags
+
+body T_HTML_TAG_BALANCE_DIV_1 eval:html_tag_balance('div', '!= 0')
+describe T_HTML_TAG_BALANCE_DIV_1 HTML has unbalanced "font" tags
+
+body T_HTML_TAG_BALANCE_DIV_2 eval:html_tag_balance('div', '> 0')
+describe T_HTML_TAG_BALANCE_DIV_2 HTML is missing "div" tags