summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_delete_mailbox.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 19:50:38 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-07-05 20:25:16 +0100
commita8d64317834c4efc56d41b314d0a219e5de7ecfd (patch)
tree27317fcc06bf4b60137297715478ddb31819c3f3 /pykolab/cli/cmd_delete_mailbox.py
parent4e63299089254bbe6be5fa6e58458475276825cb (diff)
downloadpykolab-a8d64317834c4efc56d41b314d0a219e5de7ecfd.tar.gz
Make sure the pattern for deleting mailboxes is passed on right between various function calls
Diffstat (limited to 'pykolab/cli/cmd_delete_mailbox.py')
-rw-r--r--pykolab/cli/cmd_delete_mailbox.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pykolab/cli/cmd_delete_mailbox.py b/pykolab/cli/cmd_delete_mailbox.py
index 99404ff..68e1735 100644
--- a/pykolab/cli/cmd_delete_mailbox.py
+++ b/pykolab/cli/cmd_delete_mailbox.py
@@ -49,7 +49,9 @@ def execute(*args, **kw):
imap = IMAP()
imap.connect()
- delete_folders = imap.lm(delete_folder)
+
+ delete_folders = imap.list_folders(delete_folder)
+
for delete_folder in delete_folders:
- imap.delete_mailfolder(delete_folder)
+ imap.delete_mailfolder(imap.folder_utf8(delete_folder))