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: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=71cf315373a2ed2e1c3460349cfa1daddd3d2422;p=mailshears.git 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