Changeset 106

Show
Ignore:
Timestamp:
11.12.2006 00:05:14 (2 years ago)
Author:
decoder
Message:

Fixed Ticket #21 and autosort config parameter bug

Files:

Legend:

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

    r100 r106  
    443443        setting => 'focr_autosort_buffer', 
    444444        default => 10, 
    445         type => $Mail::SpamAssassin::Conf::CONF_TYPE_BOOL 
     445        type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC 
    446446    }); 
    447447    push (@cmds, { 
     
    635635    } 
    636636    unless ($conf->{focr_skip_updates}) { 
    637         use DBI; 
    638         use MLDBM qw(DB_File Storable); 
    639         use MLDBM::Sync; 
    640637        if ($conf->{focr_enable_image_hashing} == 2 and -r $conf->{focr_digest_db}) { 
     638            use MLDBM qw(DB_File Storable); 
     639            use MLDBM::Sync; 
    641640            my %DB; my $dbm; my $sdbm; my $err = 0; 
    642641            my $now = time - ($conf->{focr_db_max_days}*86400); 
     
    703702        } 
    704703        if ($conf->{focr_enable_image_hashing} == 3 and defined (my $ddb = get_mysql_ddb())) { 
     704            use DBI; 
     705            use MLDBM qw(DB_File Storable); 
     706            use MLDBM::Sync; 
    705707            my $db   = $conf->{focr_mysql_db}; 
    706708            my $tab  = $conf->{focr_mysql_hash};