On Wed, Apr 8, 2009 at 12:50 AM, Matt Kettler <mkettler...@verizon.net> wrote:
> 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);
>  }
> ----------------------
>
>
>
>

i even tried with vpopmail user instead of spamd user, I still get this warning

-- 
http://alexus.org/

Reply via email to