~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-updates

« back to all changes in this revision

Viewing changes to lib/Mail/SpamAssassin/SQLBasedAddrList.pm

  • Committer: Package Import Robot
  • Author(s): Noah Meyerhans
  • Date: 2014-02-14 22:45:15 UTC
  • mfrom: (0.8.1) (0.6.2) (5.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20140214224515-z1es2twos8xh7n2y
Tags: 3.4.0-1
* New upstream version! (Closes: 738963, 738872, 738867)
* Scrub the environment when switching to the debian-spamd user in
  postinst and cron.daily. (Closes: 738951)
* Enhancements to postinst to better manage ownership of
  /var/lib/spamassassin, via Iain Lane <iain.lane@canonical.com>
  (Closes: 738974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
CREATE TABLE awl (
45
45
  username varchar(100) NOT NULL default '',
46
46
  email varchar(255) NOT NULL default '',
47
 
  ip varchar(16) NOT NULL default '',
 
47
  ip varchar(40) NOT NULL default '',
48
48
  count int(11) NOT NULL default '0',
49
49
  totscore float NOT NULL default '0',
50
50
  signedby varchar(255) NOT NULL default '',
126
126
  if (!$main->{conf}->{user_awl_dsn} ||
127
127
      !$main->{conf}->{user_awl_sql_table}) {
128
128
    dbg("auto-whitelist: sql-based invalid config");
129
 
    return undef;
 
129
    return;
130
130
  }
131
131
 
132
132
  my $dsn    = $main->{conf}->{user_awl_dsn};
138
138
  if(!$dbh) {
139
139
    info("auto-whitelist: sql-based unable to connect to database (%s) : %s",
140
140
         $dsn, DBI::errstr);
141
 
    return undef;
 
141
    return;
142
142
  }
143
143
 
144
144
  dbg("auto-whitelist: sql-based connected to $dsn");