From 1e4cad3a4f6938ca07bc99078108d466bf146b24 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 20 Mar 2010 14:13:44 -0400 Subject: [PATCH] Use the 'mailbox' table instead of 'alias'; the alias.goto field can contain a list of comma-separated values which gets messy. --- src/postfixadmin_db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postfixadmin_db.rb b/src/postfixadmin_db.rb index 7998bfe..5291a53 100644 --- a/src/postfixadmin_db.rb +++ b/src/postfixadmin_db.rb @@ -33,7 +33,7 @@ class PostfixadminDb # If address = goto, then the alias basically says, "really # deliver to that address; it's not an alias." - sql_query = 'SELECT address FROM alias WHERE address = goto;' + sql_query = 'SELECT username FROM mailbox;' result = connection.query(sql_query) connection.close() rescue PGError => e -- 2.43.2