On 06/30/2011 05:54 PM, Axb wrote:
>
> ok.. you said "Spamd runs as root."
>
> in that case:
>
> bayes_sql_override_username spamd
>
> then as per Bowie:
>
>  sa-learn --username=spamd --ham /path/to/ham
>  sa-learn --username=spamd --spam /path/to/spam
>
> then
> sa-learn --dump magic
>
>
Ahh, I meant that spamd was started as root.  spamd is running with
--username=spamd, and the childs all drop down to this UID. Apologies
for the confusion.


# sa-learn --username=spamd --ham .HAM/cur/
Learned tokens from 717 message(s) (764 message(s) examined)
# sa-learn --username=spamd --spam .Junk/cur
Learned tokens from 311 message(s) (368 message(s) examined)

# sa-learn --dump magic
0.000          0          3          0  non-token data: bayes db version
0.000          0          0          0  non-token data: nspam
0.000          0          0          0  non-token data: nham
0.000          0          0          0  non-token data: ntokens
0.000          0 2147483647          0  non-token data: oldest atime
0.000          0          0          0  non-token data: newest atime
0.000          0          0          0  non-token data: last journal
sync atime
0.000          0          0          0  non-token data: last expiry atime
0.000          0          0          0  non-token data: last expire
atime delta
0.000          0          0          0  non-token data: last expire
reduction count



Reply via email to