VirtualMailManager/common.py
changeset 582 605f8c115711
parent 568 14abdd04ddf5
child 583 a479c38931c4
--- a/VirtualMailManager/common.py	Sun Jul 29 16:44:20 2012 +0000
+++ b/VirtualMailManager/common.py	Tue Aug 07 21:53:41 2012 +0000
@@ -250,11 +250,9 @@
 
     gids = []
     daddrs = {}
-    lastgid = None
     for gid, address, addrtype, aliasdomain in result:
-        if gid != lastgid:
+        if gid not in gids:
             gids.append(gid)
-            lastgid = gid
             daddrs[gid] = []
         daddrs[gid].append((address, addrtype, aliasdomain))
     return gids, daddrs