VirtualMailManager/common.py
changeset 583 a479c38931c4
parent 582 605f8c115711
child 586 cd1200d06700
--- a/VirtualMailManager/common.py	Tue Aug 07 21:53:41 2012 +0000
+++ b/VirtualMailManager/common.py	Tue Aug 07 21:54:39 2012 +0000
@@ -221,7 +221,7 @@
         queries.append('SELECT gid, local_part, %d AS type FROM users'
                        % TYPE_ACCOUNT)
     if typelimit & TYPE_ALIAS:
-        queries.append('SELECT gid, address as local_part, %d AS type '
+        queries.append('SELECT DISTINCT gid, address as local_part, %d AS type '
                        'FROM alias' % TYPE_ALIAS)
     if typelimit & TYPE_RELOCATED:
         queries.append('SELECT gid, address as local_part, %d AS type '