You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/04/30 17:16:54 UTC

[Bug 3334] New: journal_live_path returning an invalid path for bayes _journal

http://bugzilla.spamassassin.org/show_bug.cgi?id=3334

           Summary: journal_live_path returning an invalid path for bayes
                    _journal
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: spamc/spamd
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: dallase@nmgi.com


SVN r10422

spamd debug complains on every message.....

cannot write to /tmp/spamd-18149-init/.spamassassin/bayes_journal, Bayes db 
update ignored: No such file or directory

however, bayes_toks and bayes_seen are found fine via bayes_path and it ties to 
them just fine and bayes is working.

it's like its not looking for _journal in the 'bayes_path'.  looking at DBM.pm 
i see it using a config option of 'journal_live_path', but its undocumented, so 
i commented that stuff out...

_get_journal_filename now looks like this...


sub _get_journal_filename {
  my ($self) = @_;

#  if (defined $self->{journal_live_path}) {
#    return $self->{journal_live_path};
#  }

  my $main = $self->{bayes}->{main};
  my $fname = $main->sed_path ($main->{conf}->{bayes_path}."_journal");

  $self->{journal_live_path} = $fname;
  &dbg("bayes _journal is found: " . $self->{journal_live_path} . " ");

  return $self->{journal_live_path};
}

@4000000040926d6530d2776c debug: bayes _journal is found: /var/sa/bayes/_journal

so that fixes it for me!



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.