summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_delete_mailbox_acl.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/cli/cmd_delete_mailbox_acl.py')
-rw-r--r--pykolab/cli/cmd_delete_mailbox_acl.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pykolab/cli/cmd_delete_mailbox_acl.py b/pykolab/cli/cmd_delete_mailbox_acl.py
index 888f882..727b00d 100644
--- a/pykolab/cli/cmd_delete_mailbox_acl.py
+++ b/pykolab/cli/cmd_delete_mailbox_acl.py
@@ -62,4 +62,8 @@ def execute(*args, **kw):
else:
folders = imap.lm(folder)
for folder in folders:
- imap.set_acl(folder, identifier, '') \ No newline at end of file
+ try:
+ imap.set_acl(folder, identifier, '')
+ except:
+ # Mailbox no longer exists?
+ pass \ No newline at end of file