Use of uninitialized value in scalar chomp

2007-08-11 Thread Jonathan Selander

Hi,

I've managed to set up SA to scan via procmail and it works nicely. I 
run qmail+vpopmail. However, I get this in the logs:


Aug 11 15:25:49 spinea spamd[14258]: Use of uninitialized value in 
scalar chomp at /usr/sbin/spamd line 1765, GEN33 line 2.
Aug 11 15:25:49 spinea spamd[14258]: Use of uninitialized value in 
concatenation (.) or string at /usr/sbin/spamd line 1767, GEN33 line 2.


As well as

Aug 11 15:25:50 spinea spamd[14258]: pyzor: check failed: internal error



I read that the first is due to vuserinfo not returning correct 
information or something, but it still annoys me to have the message 
there. My SA startup flags are:


--max-children 5 --helper-home-dir /var/qmail/spamassassin -v -u vpopmail

I also read that the pyzor message is actually not a real error, but 
more a notification or similar? I found a couple of patches for it that 
I couldn't apply to my version.


Oh yeah, I run Debian Etch.

Any idea how I can get rid of these warnings?

Jonathan


Use of uninitialized value in scalar chomp.

2005-09-30 Thread Jimmy
Hello,

I have recently upgraded using CPAN from Spam Assassin v3.0.4 to v3.1.0.
 Since doing that I have been getting the following error message :

Sep 29 14:56:12 HOST spamd[19995]: Use of uninitialized value in scalar
chomp at /usr/bin/spamd line 1762, GEN5 line 2.
Sep 29 14:56:12 HOST spamd[19995]: Use of uninitialized value in
concatenation (.) or string at /usr/bin/spamd line 1764, GEN5 line 2.

I am running the following syntax

/usr/bin/spamd -m 10 -v -u vpopmail -d --round-robin

I am using vpopmail and running the service as vpopmail. I am piping the
 email into spamc using the following syntax in my .qmail-default files.

| spamc | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

Taking that on board here is my version output.

spamd -V
SpamAssassin Server version 3.1.0
  running on Perl 5.8.6
  with SSL support (IO::Socket::SSL 0.97)


It all appears to run however I am am not realy sure about these error
messages. Any assistance would be greatly appreciated.

Regards,

Jimmy.







Re: Use of uninitialized value in scalar chomp.

2005-09-30 Thread Stephen Kratzer
Because of the following part of /usr/bin/spamd... It tries to set the $dir 
variable to the virtual homedir, but it can't, so it sets $dir to an 
undefined value. Then comp and '.' (string concatenation) complain when they 
try to operate on an undefined value. You'll see these warnings since the 
first line of /usr/bin/spamd '#!/usr/bin/perl -T -w' says to show warnings.

  # If vpopmail config enabled then set $dir to virtual homedir
  #
  if ( $opt{'vpopmail'} ) {
my $vpopdir = $dir;
$dir = `$vpopdir/bin/vuserinfo -d $username`;
if ($? != 0) {
  #
  # If vuserinfo failed $username could be an alias
  #
  $dir = `$vpopdir/bin/valias $username`;
  if ($? == 0  $dir !~ /.+ - /) {
$dir =~ s,.+ - (/.+)/Maildir/,$1,;
  } else {
undef($dir);
  }
}
chomp($dir);
  }
  my $cf_file = $dir . /.spamassassin/user_prefs;


On Friday 30 September 2005 03:59, Jimmy wrote:
 Hello,

 I have recently upgraded using CPAN from Spam Assassin v3.0.4 to v3.1.0.
  Since doing that I have been getting the following error message :

 Sep 29 14:56:12 HOST spamd[19995]: Use of uninitialized value in scalar
 chomp at /usr/bin/spamd line 1762, GEN5 line 2.
 Sep 29 14:56:12 HOST spamd[19995]: Use of uninitialized value in
 concatenation (.) or string at /usr/bin/spamd line 1764, GEN5 line 2.

 I am running the following syntax

 /usr/bin/spamd -m 10 -v -u vpopmail -d --round-robin

 I am using vpopmail and running the service as vpopmail. I am piping the
  email into spamc using the following syntax in my .qmail-default files.

 | spamc | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

 Taking that on board here is my version output.

 spamd -V
 SpamAssassin Server version 3.1.0
   running on Perl 5.8.6
   with SSL support (IO::Socket::SSL 0.97)


 It all appears to run however I am am not realy sure about these error
 messages. Any assistance would be greatly appreciated.

 Regards,

 Jimmy.