diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-11-21 14:45:47 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-11-21 14:45:47 +0100 |
commit | a8d3a2e13ff4cfda96e09356bc249c5932f71f41 (patch) | |
tree | f72bec54efb2441f5c35fa864032df8d0799a533 | |
parent | 6bf3cdc14e8b41e303f5204545c380c8813a30a5 (diff) | |
download | pykolab-a8d3a2e13ff4cfda96e09356bc249c5932f71f41.tar.gz |
Fix listing deleted mailboxes' domain list iteration
-rw-r--r-- | pykolab/cli/cmd_list_deleted_mailboxes.py | 6 |
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/*")) |