From 090bd2f0bfbf2c6dbdde0b1fe915ce2e37f8ead0 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Fri, 2 Aug 2013 11:32:06 +0100 Subject: 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 --- pykolab/cli/cmd_delete_mailbox_acl.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.1