summaryrefslogtreecommitdiffstats
path: root/pykolab/cli
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-11-21 14:45:47 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-11-21 14:45:47 +0100
commita8d3a2e13ff4cfda96e09356bc249c5932f71f41 (patch)
treef72bec54efb2441f5c35fa864032df8d0799a533 /pykolab/cli
parent6bf3cdc14e8b41e303f5204545c380c8813a30a5 (diff)
downloadpykolab-a8d3a2e13ff4cfda96e09356bc249c5932f71f41.tar.gz
Fix listing deleted mailboxes' domain list iteration
Diffstat (limited to 'pykolab/cli')
-rw-r--r--pykolab/cli/cmd_list_deleted_mailboxes.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pykolab/cli/cmd_list_deleted_mailboxes.py b/pykolab/cli/cmd_list_deleted_mailboxes.py
index d39f890..637b491 100644
--- a/pykolab/cli/cmd_list_deleted_mailboxes.py
+++ b/pykolab/cli/cmd_list_deleted_mailboxes.py
@@ -62,10 +62,8 @@ def execute(*args, **kw):
domains = auth.list_domains()
folders = []
- for primary,secondaries in domains:
- folders.extend(imap.lm("DELETED/*@%s" % (primary)))
- for secondary in secondaries:
- folders.extend(imap.lm("DELETED/*@%s" % (secondary)))
+ for domain in list(set(domains.keys())):
+ folders.extend(imap.lm("DELETED/*@%s" % (domain)))
folders.extend(imap.lm("DELETED/*"))