Matt Kettler wrote:
> Rene Caspari wrote:
> > Hello,
> > 
> > I want to learn SPAM (and HAM) Mails for certain users, so I
> > execute sa-learn: 
> > 
> >   [EMAIL PROTECTED] sa-learn --spam -u rene \
> >   /var/spool/cyrus/mail/r/user/rene/SPAM/learnspam/9.
> > 
> > But --debug-leve 1 says:
> > 
> >   [...]
> >   [2975] dbg: bayes: tie-ing to DB file R/O
> >     /root/.spamassassin/bayes_toks
> >   [...]
> > 
> > Why sa-learn doesn't update /home/rene/.spamassassin/bayes*?
> > The folder exists and spamc (also called with -u rene) updates it
> > with autolearning stuff. 
> 
> Because sa-learn -u ONLY works for virtual users. ie: SQL
> configurations or folks using spamd --virtual-config-dir

Try doing it this way:

su -c 'sa-learn --spam /path/to/spam' - rene

-- 
Bowie

Reply via email to