summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-08-02 11:32:06 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-08-02 11:32:06 +0100
commit090bd2f0bfbf2c6dbdde0b1fe915ce2e37f8ead0 (patch)
tree3576287283586fe3c2af895cedf15ed844476792 /pykolab
parenta3ed0383ff97f0ab5c03ba26426ea65e4a31f4e6 (diff)
downloadpykolab-090bd2f0bfbf2c6dbdde0b1fe915ce2e37f8ead0.tar.gz
When deleting acls from many,many mailboxes in one go, the mailbox that occured in the list may not be around any longer, by the time we get to remove the acl
Diffstat (limited to 'pykolab')
-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