You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by LDB <th...@ldb-jab.org> on 2008/08/05 14:57:36 UTC

Re-injection

Is it possible to re-inject a caught piece email that was
labeled HAM, in spamd or spamc and force it to learn it
as spam for bayes?


Re: Re-injection

Posted by Matt Kettler <mk...@verizon.net>.
Jeroen Tebbens wrote:
> Use:
>
> sa-learn --forget <msg>
> sa-learn --spam <msg>

The forget should be redundant. If SA previously autolearned it as ham, 
feeding it to sa-learn --spam should compensate for this automatically 
by subtracting from nham and adding to nspam for each token. If it 
wasn't learned at all before, it will only add to nspam.


>
> LDB wrote:
>> Is it possible to re-inject a caught piece email that was
>> labeled HAM, in spamd or spamc and force it to learn it
>> as spam for bayes?
>>
>>
>>   
>
>


Re: Re-injection

Posted by Jeroen Tebbens <je...@tebbens.net>.
Use:

sa-learn --forget <msg>
sa-learn --spam <msg>

LDB wrote:
> Is it possible to re-inject a caught piece email that was
> labeled HAM, in spamd or spamc and force it to learn it
> as spam for bayes?
>
>
>   


Re: Re-injection

Posted by Michael Parker <pa...@pobox.com>.
On Aug 5, 2008, at 7:57 AM, LDB wrote:

> Is it possible to re-inject a caught piece email that was
> labeled HAM, in spamd or spamc and force it to learn it
> as spam for bayes?
>


Yes.

First read up on the --allow-tell command line switch for spamd, if  
you're ok with the "risks" then start spamd up with that option.

Then you can use spamc --learntype=<type> (ie spamc --learntype=spam)  
to send the message to spamd for learning.  It might also be necessary  
to add -u <username> to the spamc command as well.  More details  
available in the spamc man page.

Michael