summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-01 22:07:42 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-01 22:07:42 +0200
commit1289a04ec39066c32fa6905f528dc06f30684443 (patch)
tree99a5a18dd2a4ca300639b06efa91df1b79feacd9
parent8c4c9e8643dc4489a42f22e5a25b737103169b5b (diff)
downloadpykolab-1289a04ec39066c32fa6905f528dc06f30684443.tar.gz
Update for the new domain listing
-rw-r--r--pykolab/cli/cmd_count_domain_mailboxes.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pykolab/cli/cmd_count_domain_mailboxes.py b/pykolab/cli/cmd_count_domain_mailboxes.py
index 8aecd2d..958bccd 100644
--- a/pykolab/cli/cmd_count_domain_mailboxes.py
+++ b/pykolab/cli/cmd_count_domain_mailboxes.py
@@ -56,10 +56,8 @@ def execute(*args, **kw):
domains = auth.list_domains()
folders = []
- for primary,secondaries in domains:
- print "%s: %d" % (primary,len(imap.lm("user/%%@%s" % (primary))))
- for secondary in secondaries:
- print "%s: %d" % (secondary,len(imap.lm("user/%%@%s" % (secondary))))
+ for domain in domains.keys():
+ print "%s: %d" % (domain,len(imap.lm("user/%%@%s" % (domain))))
null_realm = len(imap.lm("user/%%"))