]> gitweb.michael.orlitzky.com - mailshears.git/commitdiff
Ignore the 'ALL' domain.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 13 Jun 2010 15:45:59 +0000 (11:45 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 13 Jun 2010 15:45:59 +0000 (11:45 -0400)
src/postfixadmin_db.rb

index f4e6feb5c999119535afff82f16ec9d9b83b51cb..d9112afa177be2ec1c842f2f79205882742486e0 100644 (file)
@@ -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