> cornelius:/tmp # su spamfilter -c '/usr/bin/sa-learn --spam ./unham/1.'
> Learned from 1 message(s) (1 message(s) examined).
> 
> cornelius:/tmp # su spamfilter -c '/usr/bin/sa-learn --spam ./unham/1.'
> Learned from 1 message(s) (1 message(s) examined).

When in doubt, run with -D.

> When re-running sa-learn with the -D option, the command hangs perpetually at
> this message:
>
> debug: Syncing complete.
>
> .. until I issue a Ctrl-C.
>
> I don't see why listing the debug information would cause a hang, but it does.

If you put it after the --spam, the "./unham/1." will be considered an option
to -D.  I'd double check a few things:

$ sa-learn -D --spam --mbox <file>
[...]
debug: locker: safe_lock: 23879 created /home/felicity/.spamassassin/bayes.mutex
debug: locker: safe_lock: 23879 trying to get lock on 
/home/felicity/.spamassassin/bayes with 300 timeout
debug: locker: safe_lock: 23879 link to 
/home/felicity/.spamassassin/bayes.mutex: link ok
debug: bayes: 23879 tie-ing to DB file R/W 
/home/felicity/.spamassassin/bayes_toks
debug: bayes: 23879 tie-ing to DB file R/W 
/home/felicity/.spamassassin/bayes_seen
[...]
debug: bayes: [EMAIL PROTECTED] already learnt correctly, not learning twice
[...]

Verify the DBs in use, and what msgid is being learnt.

-- 
Randomly Generated Tagline:
"I believe in getting into hot water; it keeps you clean." - G. K. Chesterton

Attachment: pgp2BTO8JrFF9.pgp
Description: PGP signature

Reply via email to