Did some more digging but my perl knowledge is close to zero.. But I
found the following:

   Around line 159 of BayesStore.pm:

foreach my $dbname (@DBNAMES) {
    my $name = $path.'_'.$dbname;
    my $db_var = 'db_'.$dbname;
    dbg("bayes: $$ tie-ing to DB file R/O $name");
    # untie %{$self->{$db_var}} if (tied %{$self->{$db_var}});
    tie %{$self->{$db_var}},"AnyDBM_File",$name, O_RDONLY,
                 (oct ($main->{conf}->{bayes_file_mode}) & 0666)
       or goto failed_to_tie;
  }
  $self->{scan_count_little_file} = $path.'_msgcount';
  return 1;

failed_to_tie:
  warn "Cannot open bayes_path $path R/O: $!\n";
  return 0;
}

   Which is probably the following lines in syslog:

 Aug 10 13:47:36 shampoo spamd[30442]: debug: bayes: 30442 tie-ing to DB file R/O 
/var/tmp/exim4-bayes/bayes_toks
 Aug 10 13:47:36 shampoo spamd[30442]: Cannot open bayes_path 
/var/tmp/exim4-bayes/bayes R/O:


  What it appears is happening is the debug is printed, and it tries to
open bayes_toks but fails for some reason and then it prints the warning
message. 

  What is the ' $! '  at the end of the warning message? This is where
something should be printed but isn't.. i figure.

  I put debugs all over this to see and all the vars appear to have
valid vars..

  Just to restate that bayes works perfectly when invoking SA using
spamassassin -t < SPAM but never using spamd/spamc.


  Thanks

   J


-- 
Justin F. Knotzke
[EMAIL PROTECTED]
http://www.shampoo.ca

----- End forwarded message -----

-- 
Justin F. Knotzke
[EMAIL PROTECTED]
http://www.shampoo.ca


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to