Hi,

On Mon, 08 Jan 2007 12:15:48 +0000
[EMAIL PROTECTED] wrote:

> I'm getting some unitialized var warnings in the spamassassin plugin.
> Nothing to worry about I presume. Just a note to the maintainer.
[...]
> 2007-01-08 12:12:18.287066500 15607 spamassassin plugin: check_spam:
> spamd: Content-length: 0
This is the cause, the Content-length is not parsed, and the next read
from SPAMD returns undef... this should be skipped if the content
length is 0.

[...]
> 2007-01-08 12:12:18.315862500 Use of uninitialized value in substitution
> (s///) at ./plugins/spamassassin line 189, <SPAMD> line 16.
> 2007-01-08 12:12:18.318479500 15607 spamassassin plugin: check_spam:
> finished reading from spamd
Hmm, this should be these lines (193,194 in svn rev 704):
  my $tests = <SPAMD>;
  $tests =~ s/\015//;  # hack for outlook
Can you confirm this in your plugins/spamassassin version?
The rest of warnings are the result of this. Never seen this at my
setups, maybe just because I've never had a mail which hit no tests... 

The easy fix would be to insert 
  $tests = "" unless defined $tests;
between those two lines... 

        Hanno

Reply via email to