Rudy Gevaert schrieb am Friday, den 29. July 2011:

> I saw that the cleaning script has a way to see if it is turned on or off.
> 
> In /usr/bin/sa-learn we have
> 
> if ( !$spamtest->{conf}->{use_bayes} ) {
>   warn "ERROR: configuration specifies 'use_bayes 0', sa-learn disabled\n";
>   exit 1;
> }
Yeah thats exactly what I meaned.

perl -MMail::SpamAssassin -e 'my $spamtest =
    Mail::SpamAssassin->new();$spamtest->compile_now ();
    $spamtest->{conf}->{use_bayes} ? exit 0 : exit 1' && ..  

should do the trick.

Alex


> 
> 
> 
> 
> 



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to