Changeset 53

Show
Ignore:
Timestamp:
23.11.2006 21:10:45 (2 years ago)
Author:
decoder
Message:

Added focr_autodisable_negative_score, satisfying ticket #6

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/devel/FuzzyOcr.pm

    r52 r53  
    8686    if ( $pms->get_score() > $conf->{focr_autodisable_score} ) { 
    8787        debuglog("Scan canceled, message has already more than $conf->{focr_autodisable_score} points."); 
     88        return 0; 
     89    } 
     90 
     91    if ( $pms->get_score() < $conf->{focr_autodisable_negative_score} ) { 
     92        debuglog("Scan canceled, message has less than $conf->{focr_autodisable_negative_score} points."); 
    8893        return 0; 
    8994    } 
  • trunk/devel/FuzzyOcr/Config.pm

    r51 r53  
    308308        setting => 'focr_autodisable_score', 
    309309        default => 10, 
     310        type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC 
     311       }); 
     312 
     313    push (@cmds, { 
     314        setting => 'focr_autodisable_negative_score', 
     315        default => -5, 
    310316        type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC 
    311317       });