You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by qu...@apache.org on 2004/05/15 13:10:08 UTC

svn commit: rev 10679 - incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Message

Author: quinlan
Date: Sat May 15 04:10:06 2004
New Revision: 10679

Modified:
   incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm
Log:
remove some old testing code
add html_message flag for HTML_MESSAGE


Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm	(original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/Message/Node.pm	Sat May 15 04:10:06 2004
@@ -373,8 +373,9 @@
 
       # some tests done after rendering
       my $r = $self->{html_results}; # temporary reference for brevity
-      my $space = 0;
+      $r->{html_message} = 1;
       $r->{html_length} = 0;
+      my $space = 0;
       for my $line (@lines) {
         $line = pack ('C0A*', $line);
         $space += ($line =~ tr/ \t\n\r\x0b\xa0/ \t\n\r\x0b\xa0/);
@@ -391,21 +392,6 @@
       }
       if (exists $r->{tags} && exists $r->{obfuscation}) {
 	$r->{obfuscation_ratio} = $r->{obfuscation} / $r->{tags};
-      }
-      if (exists $r->{tags} && exists $r->{t_obfuscation1}) {
-	$r->{t_obfuscation1_ratio} = $r->{t_obfuscation1} / $r->{tags};
-      }
-      if (exists $r->{tags} && exists $r->{t_obfuscation2}) {
-	  $r->{t_obfuscation2_ratio} = $r->{t_obfuscation2} / $r->{tags};
-      }
-      if (exists $r->{tags} && exists $r->{t_obfuscation3}) {
-	  $r->{t_obfuscation3_ratio} = $r->{t_obfuscation3} / $r->{tags};
-      }
-      if (exists $r->{tags} && exists $r->{t_obfuscation4}) {
-	  $r->{t_obfuscation4_ratio} = $r->{t_obfuscation4} / $r->{tags};
-      }
-      if (exists $r->{tags} && exists $r->{t_obfuscation5}) {
-	  $r->{t_obfuscation5_ratio} = $r->{t_obfuscation5} / $r->{tags};
       }
       if (exists $r->{attr_bad} && exists $r->{attr_all}) {
 	$r->{attr_bad} = $r->{attr_bad} / $r->{attr_all};