alexus wrote:
> I keep getting this line in my logs everytime there is a spamd calles
>
> Apr  8 03:55:15 mx1 spamd[36109]: Use of uninitialized value $dir in
> scalar chomp at /usr/local/bin/spamd line 2118, <GEN103> line 2.
>
> i dont suppose this is normal
>   
Are you using the -v parameter when you start spamd, but are passing a
username that's not a vpopmail user with working vuserinfo?


Code:
---------------------
  if ( $opt{'vpopmail'} ) {
    my $vpopdir = $dir;
    $dir = `$vpopdir/bin/vuserinfo -d \Q$username\E`;
    if ($? != 0) {
      #
      # If vuserinfo failed $username could be an alias
      #
      $dir = `$vpopdir/bin/valias \Q$username\E`;
      if ($? == 0 && $dir !~ /.+ -> &/) {
        $dir =~ s,.+ -> (/.+)/Maildir/,$1,;
      } else {
        undef($dir);
      }
    }
    chomp($dir);
  }
----------------------



Reply via email to