You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jh...@apache.org on 2021/01/05 22:43:27 UTC
svn commit: r1885177 -
/spamassassin/trunk/rulesrc/sandbox/kmcgrail/20_html_tests.cf
Author: jhardin
Date: Tue Jan 5 22:43:27 2021
New Revision: 1885177
URL: http://svn.apache.org/viewvc?rev=1885177&view=rev
Log:
Convert scored rule into subrule+meta to allow safe subrule reuse
Modified:
spamassassin/trunk/rulesrc/sandbox/kmcgrail/20_html_tests.cf
Modified: spamassassin/trunk/rulesrc/sandbox/kmcgrail/20_html_tests.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/kmcgrail/20_html_tests.cf?rev=1885177&r1=1885176&r2=1885177&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/kmcgrail/20_html_tests.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/kmcgrail/20_html_tests.cf Tue Jan 5 22:43:27 2021
@@ -27,10 +27,16 @@
ifplugin Mail::SpamAssassin::Plugin::HTMLEval
-body KAM_HTML_FONT_INVALID eval:html_test('font_invalid_color')
+body __KAM_HTML_FONT_INVALID eval:html_test('font_invalid_color')
+meta KAM_HTML_FONT_INVALID __KAM_HTML_FONT_INVALID
describe KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted Colors in HTML
score KAM_HTML_FONT_INVALID 0.1
+else
+
+# if used in other metas
+meta __KAM_HTML_FONT_INVALID 0
+
endif
#EOF