Changeset 181

Show
Ignore:
Timestamp:
09/09/07 14:51:41 (16 months ago)
Author:
jonas
Message:

fix mailfilter problems

Location:
trunk/system_scripts
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system_scripts/create_mailfilters.pl

    r178 r181  
    8686        if ($b_sth->rows == 1) { 
    8787                my @row_b = $b_sth->fetchrow_array; 
    88                 if ($row_b[0]== 1) { 
     88                if ($row_b[0] eq "1") { 
    8989                        my $b_s_sth=$dbh->prepare("SELECT value FROM spamassassin WHERE preference='rewrite_header subject' AND username=?"); 
    9090                        $b_s_sth->execute($email); 
     
    133133        if ($eo_sth->rows==1) { 
    134134                my @row_eo=$eo_sth->fetchrow_array; 
    135                 my $sql=sprintf("UPDATE email_options SET options=%s WHERE email=%d AND conf=%s", 
     135                my $sql=sprintf("UPDATE email_options SET options=%s WHERE email=%s AND conf=%s", 
    136136                        $dbh->quote($value), 
    137137                        $dbh->quote($uid), 
  • trunk/system_scripts/mail_config.default.conf

    r162 r181  
    4949sa_wb_listing = /usr/local/cpves/sa_wb_listing.pl 
    5050 
    51 #path to spamc 
    52 spamassassin = /usr/bin/spamc 
    53  
    5451#Autowhitelist local domains 
    5552whitelist_local_domains = 1