On Tuesday 28 February 2006 10:46 pm, you wrote:

> I am new to spamassassin. Thank you so much for your help and Tyler too.

Thanks.. I'm not the expert.. I just use it!

> Bayes autolearn is enabled when I feed Bayes with the 1500 emails manually
> using the "sa-learn" command. Does it cause the problem?

I think that sa-learn... probably creates a lock file.  Assuming that 
sa-learn exits normally, I would think that it'd remove the lock file
when it's done.  I assume that it works this way because when you're
"sa-learn"-ing .. the auto-learn feature is unavailable for spamd to
record the bayes tokens (I think) because it can't get a lock on the
bayes structures to record them.  Once sa-learn halts and removes the
lock.. auto-learn should be available.

> I also checked the Bayes database directory and found two stale lock files
> "bayes.lock...". One is pretty old, almost 4 months and the other was
> created during I feed bayes this time. Could I delete them?

I'd say.. that you can toast the 4 month old one rather easily... 
Watch for when sa-learn finishes.. and you should see the newer lock 
file go away after it's completion.  If it doesn't... then remove
that one as well....   

I don't think, in the normal operation of spamassassin.. if the auto-learn
*write* to the bayes structure put's a lockfile on the bayes structures.
At the same time... I've never explicitly watched the directory that 
bayes exists .. to see if a lock file appears quickly and disapppears just
as fast when it's done. 

I do know.. that if I evoke *sa-learn*.. that a lockfile will exist
while it's sa-learn'ing.. and then go away afterwards.  While it's 
sa-learn'ing, I see the Spamassassin header tags show that autolearn
is "unavailable" during this time because it knows it can't open up
the bayes structures to write the tokens to it.


-- 
Tyler Nally
[EMAIL PROTECTED]

Reply via email to