Why does this happen?

Use of uninitialized value at /usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin/Bayes.pm line 519 (also 521 & 522).

This seems to be the code (513-529):

sub pre_chew_content_type {
 my ($self, $val) = @_;

 # hopefully this will retain good bits without too many hapaxen
 if ($val =~ s/boundary=[\"\'](.*?)[\"\']/ /ig) {
   my $boundary = $1;
   $boundary =~ s/[a-fA-F0-9]/H/gs;
   # break up blocks of separator chars so they become their own tokens
   $boundary =~ s/([-_\.=]+)/ $1 /gs;
   $val .= $boundary;
 }

 # stop-list words for Content-Type header: these wind up totally gray
 $val =~ s/\b(?:text|charset)\b//;

 $val;
}


I get a few of these when training on big mbox files.

Is it because of malformed email? My old Perl? Seems not to be a big deal, as sa-learn continues on its way.

Thanks,
-M

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar � get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




Reply via email to