From: Michael Orlitzky Date: Sun, 13 Jun 2010 15:45:59 +0000 (-0400) Subject: Ignore the 'ALL' domain. X-Git-Tag: 0.0.1~145 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=commitdiff_plain;h=71cf315373a2ed2e1c3460349cfa1daddd3d2422;hp=80dbad4600f1f19f21773fd199c895423712049c Ignore the 'ALL' domain. --- diff --git a/src/postfixadmin_db.rb b/src/postfixadmin_db.rb index f4e6feb..d9112af 100644 --- a/src/postfixadmin_db.rb +++ b/src/postfixadmin_db.rb @@ -31,7 +31,8 @@ class PostfixadminDb @db_user, @db_pass) - sql_query = 'SELECT domain FROM domain;' + # 'ALL' is a magic domain, and we don't want it. + sql_query = "SELECT domain FROM domain WHERE domain <> 'ALL';" result = connection.query(sql_query) connection.close() rescue PGError => e