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/03/18 01:11:24 UTC

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

Author: quinlan
Date: Wed Mar 17 16:11:22 2004
New Revision: 9575

Modified:
   incubator/spamassassin/trunk/lib/Mail/SpamAssassin/HTML.pm
Log:
one last try before we bail on HTML_COMMENT_RATIO



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	Wed Mar 17 16:11:22 2004
@@ -1062,7 +1062,6 @@
   my ($self, $text) = @_;
 
   push @{ $self->{html}{comment} }, $text;
-  $self->{html}{total_comment_length} += length($text);
 
   if ($self->{html_last_tag} eq "div" &&
       $text =~ /Converted from text\/plain format/)
@@ -1087,6 +1086,10 @@
     if ($text =~ /font(?:-size)?:\s*(\d+(?:\.\d*)?|\.\d+)(p[tx])/i) {
       $self->examine_text_style ($1, $2);
     }
+  }
+  else {
+    # one last try before we bail on HTML_COMMENT_RATIO
+    $self->{html}{total_comment_length} += length($text);
   }
 
   if (exists $self->{html}{shouting} && $self->{html}{shouting} > 1) {