Gary V wrote:

> It did work this time. Even with the spamcop error...
>
> sfa:~# su amavis -c 'sa-learn --dump magic'
> 0.000          0          3          0  non-token data: bayes db version
> 0.000          0          7          0  non-token data: nspam
> [...]
>
> sfa:~# su amavis -c 'spamassassin -r < email.txt'
> [2812] warn: reporter: SpamCop message older than 2 days, not reporting
> 1 message(s) examined.
>
> sfa:~# su amavis -c 'sa-learn --dump magic'
> 0.000          0          3          0  non-token data: bayes db version
> 0.000          0          8          0  non-token data: nspam
> [...]

Bear in mind that if you have auto-learning enabled, some of the spam
you're trying to learn and report has already been learned correctly as
spam, so SpamAssassin won't try to re-learn it unless its status has
changed (e.g. you're now telling it that the mail was ham, not spam).
If the auto-learning mechanism made the correct assessment at scan-time,
then you won't see any Bayes changes when you try to learn it manually
later.

In other words, you're not witnessing a bug, you're seeing the designed
behaviour at work.  Incidentally, this would be the same whether you
were using '-r' or '--spam'--the same Bayes training routine gets called
in both cases, and the success or failure of the reporting effort has no
bearing on this.

--
Robert LeBlanc <[EMAIL PROTECTED]>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamailguard.com/>


I understand. In the test I had an issue with, the database started out (at least appears to be) empty, I ran 'spamassassin -r' and the size did not change, then I ran sa-learn, and it did. Certainly not as good a test as actually checking the contents of the database:

-rw-------  1 amavis amavis 12288 2006-08-26 18:18 bayes_seen
-rw-------  1 amavis amavis 12288 2006-08-27 12:18 bayes_toks

sfa:~# su amavis -c 'spamassassin -r < email.txt'
[2762] warn: reporter: SpamCop message older than 2 days, not reporting
1 message(s) examined.

-rw-------  1 amavis amavis 12288 2006-09-03 10:51 bayes_seen
-rw-------  1 amavis amavis 12288 2006-09-03 10:51 bayes_toks

sfa:~# su amavis -c 'sa-learn --spam < email.txt'
Learned tokens from 1 message(s) (1 message(s) examined)

-rw-------  1 amavis amavis 12288 2006-09-03 10:53 bayes_seen
-rw-------  1 amavis amavis 24576 2006-09-03 10:53 bayes_toks

I erased the files and started over for the second test.

Gary V

_________________________________________________________________
Call friends with PC-to-PC calling -- FREE http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline

Reply via email to