|
From: <jgr...@us...> - 2003-07-26 18:28:30
|
Update of /cvsroot/popfile/engine/Classifier
In directory sc8-pr-cvs1:/tmp/cvs-serv15772/Classifier
Modified Files:
MailParse.pm
Log Message:
Remove all tabs from the source code and fix my editor so that *I* don't introduce any more
Index: MailParse.pm
===================================================================
RCS file: /cvsroot/popfile/engine/Classifier/MailParse.pm,v
retrieving revision 1.149
retrieving revision 1.150
diff -C2 -d -r1.149 -r1.150
*** MailParse.pm 26 Jul 2003 18:09:05 -0000 1.149
--- MailParse.pm 26 Jul 2003 18:28:27 -0000 1.150
***************
*** 297,301 ****
$after = '&' if ( $after eq '>' );
if ( !( $self->{ut__} =~ s/($before)\Q$word\E($after)/$1<b><font color=\"$color\">$word<\/font><\/b>$2/ ) ) {
! print "Could not find $word for colorization\n" if ( $self->{debug__} );
}
} else {
--- 297,301 ----
$after = '&' if ( $after eq '>' );
if ( !( $self->{ut__} =~ s/($before)\Q$word\E($after)/$1<b><font color=\"$color\">$word<\/font><\/b>$2/ ) ) {
! print "Could not find $word for colorization\n" if ( $self->{debug__} );
}
} else {
***************
*** 345,349 ****
if ( $self->{htmlcolordistance__} < 100 ) {
$self->update_pseudoword( 'html', "colordistance$self->{htmlcolordistance__}", $encoded, '' );
! }
while ( $p < length($bigline) ) {
--- 345,349 ----
if ( $self->{htmlcolordistance__} < 100 ) {
$self->update_pseudoword( 'html', "colordistance$self->{htmlcolordistance__}", $encoded, '' );
! }
while ( $p < length($bigline) ) {
***************
*** 441,445 ****
if ( $bigline =~ /[^ \t]/ ) {
$self->update_pseudoword( 'trick', 'invisibleink', $encoded, $bigline );
! }
}
}
--- 441,445 ----
if ( $bigline =~ /[^ \t]/ ) {
$self->update_pseudoword( 'trick', 'invisibleink', $encoded, $bigline );
! }
}
}
***************
*** 476,486 ****
}
! # If we hit a table tag then any font information is lost
! if ( $tag =~ /^(table|td|tr|th)$/i ) {
! $self->{htmlfontcolor__} = map_color( $self, 'black' );
! $self->{htmlbackcolor__} = $self->{htmlbodycolor__};
$self->compute_html_color_distance();
! }
return;
--- 476,486 ----
}
! # If we hit a table tag then any font information is lost
! if ( $tag =~ /^(table|td|tr|th)$/i ) {
! $self->{htmlfontcolor__} = map_color( $self, 'black' );
! $self->{htmlbackcolor__} = $self->{htmlbodycolor__};
$self->compute_html_color_distance();
! }
return;
***************
*** 552,558 ****
if ( ( $host ne '' ) && ( $tag =~ /^img$/i ) ) {
! if ( $host ne 'localhost' ) {
$self->update_pseudoword( 'html', 'imgremotesrc', $encoded, $original );
! }
}
--- 552,558 ----
if ( ( $host ne '' ) && ( $tag =~ /^img$/i ) ) {
! if ( $host ne 'localhost' ) {
$self->update_pseudoword( 'html', 'imgremotesrc', $encoded, $original );
! }
}
***************
*** 614,618 ****
$self->{htmlfontcolor__} = map_color($self, $value);
$self->compute_html_color_distance();
! print "Set html font color to $self->{htmlfontcolor__}\n" if ( $self->{debug__} );
}
--- 614,618 ----
$self->{htmlfontcolor__} = map_color($self, $value);
$self->compute_html_color_distance();
! print "Set html font color to $self->{htmlfontcolor__}\n" if ( $self->{debug__} );
}
***************
*** 622,626 ****
$self->{htmlfontcolor__} = map_color($self, $value);
$self->compute_html_color_distance();
! print "Set html font color to $self->{htmlfontcolor__}\n" if ( $self->{debug__} );
}
--- 622,626 ----
$self->{htmlfontcolor__} = map_color($self, $value);
$self->compute_html_color_distance();
! print "Set html font color to $self->{htmlfontcolor__}\n" if ( $self->{debug__} );
}
***************
*** 644,648 ****
$self->update_pseudoword( 'html', "backcolor$value" );
$self->{htmlbackcolor__} = map_color($self, $value);
! print "Set html back color to $self->{htmlbackcolor__}\n" if ( $self->{debug__} );
$self->{htmlbodycolor__} = $self->{htmlbackcolor__} if ( $tag =~ /^body$/i );
--- 644,648 ----
$self->update_pseudoword( 'html', "backcolor$value" );
$self->{htmlbackcolor__} = map_color($self, $value);
! print "Set html back color to $self->{htmlbackcolor__}\n" if ( $self->{debug__} );
$self->{htmlbodycolor__} = $self->{htmlbackcolor__} if ( $tag =~ /^body$/i );
***************
*** 1337,1341 ****
$decode_it = decode_qp( $decode_it );
$mystring =~ s/=\?[\w-]+\?Q\?(.*?)\?=/$decode_it/i;
! }
}
}
--- 1337,1341 ----
$decode_it = decode_qp( $decode_it );
$mystring =~ s/=\?[\w-]+\?Q\?(.*?)\?=/$decode_it/i;
! }
}
}
|