Mailing List Archive

svn commit: rev 6328 - in incubator/spamassassin/trunk: lib/Mail/SpamAssassin rules
Author: quinlan
Date: Tue Jan 27 14:35:08 2004
New Revision: 6328

Modified:
incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
incubator/spamassassin/trunk/rules/70_cvs_rules_under_test.cf
Log:
naming convention for html_results that are still in testing


Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm (original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm Tue Jan 27 14:35:08 2004
@@ -489,7 +489,7 @@
}
}
if ($tag eq "font" && exists $attr->{size}) {
- $self->{html}{tiny_font} = 1 if (($attr->{size} =~ /^\s*(\d+)/ && $1 < 1) ||
+ $self->{html}{t_tiny_font} = 1 if (($attr->{size} =~ /^\s*(\d+)/ && $1 < 1) ||
($attr->{size} =~ /\-(\d+)/ && $1 >= 3));
$self->{html}{big_font} = 1 if (($attr->{size} =~ /^\s*(\d+)/ && $1 > 3) ||
($attr->{size} =~ /\+(\d+)/ && $1 >= 1));
@@ -638,8 +638,8 @@
sub examine_text_style {
my ($self, $size, $type) = @_;
$type = lc $type;
- $self->{html}{tiny_font} = 1 if ($type eq "pt" && $size < 4);
- $self->{html}{tiny_font} = 1 if ($type eq "pt" && $size < 4);
+ $self->{html}{t_tiny_font} = 1 if ($type eq "pt" && $size < 4);
+ $self->{html}{t_tiny_font} = 1 if ($type eq "pt" && $size < 4);
$self->{html}{big_font} = 1 if ($type eq "pt" && $size > 14);
$self->{html}{big_font} = 1 if ($type eq "px" && $size > 18);
}

Modified: incubator/spamassassin/trunk/rules/70_cvs_rules_under_test.cf
==============================================================================
--- incubator/spamassassin/trunk/rules/70_cvs_rules_under_test.cf (original)
+++ incubator/spamassassin/trunk/rules/70_cvs_rules_under_test.cf Tue Jan 27 14:35:08 2004
@@ -314,7 +314,7 @@
describe T_RE_UC_3WORDS Has Subject in form "Re: UPPERCASE, word word word"

# Spammers are now attempting to use tiny font sizes to hide hashbusters
-body T_HTML_FONT_TINY eval:html_test('tiny_font')
+body T_HTML_FONT_TINY eval:html_test('t_tiny_font')
describe T_HTML_FONT_TINY HTML has a tiny font

# more portable replacement for RCVD_NUMERIC_HELO that doesn't rely on