summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_count_domain_mailboxes.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/cli/cmd_count_domain_mailboxes.py')
-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/%%"))