(I am not subscribed to sa-talk, so please include me on any replies,
thanks.)

Ever since I switched from Spamassassin 2.55 to 2.60, I get the following
messages in my logs several times a day. I never got these messages with
2.55.

Oct 22 07:18:44 kosh spamd[5753]: Use of uninitialized value at 
/usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin/Bayes.pm line 515, <GEN5385> 
chunk 107.
Oct 22 07:18:44 kosh spamd[5753]: Use of uninitialized value at 
/usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin/Bayes.pm line 517, <GEN5385> 
chunk 107.
Oct 22 07:18:44 kosh spamd[5753]: Use of uninitialized value at 
/usr/local/lib/perl5/site_perl/5.005/Mail/SpamAssassin/Bayes.pm line 518, <GEN5385> 
chunk 107.

Spamassassin seems to be functioning normally so these messages are mostly
just an annoyance. However, I would like to know what is causing them.

There is a very similar thread by Tomasz Matuszewski in the archives but
there was no resolution to it, so I'm asking again.

I'm running FreeBSD 4.9 with perl 5.005_03.

The lines in question are in the subroutine pre_chew_content_type() and
pertain to this chunk of code:

513  if ($val =~ s/boundary=[\"\'](.*?)[\"\']/ /ig) {
514    my $boundary = $1;
515    $boundary =~ s/[a-fA-F0-9]/H/gs;
516    # break up blocks of separator chars so they become their own tokens
517    $boundary =~ s/([-_\.=]+)/ $1 /gs;
518    $val .= $boundary;
519  }

It looks to me like $boundary isn't getting initialized. $1 must be
undefined in some instances. What is the proper thing to do when $1 is
undefined? Return out of the subroutine?

-Brian


-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to