Page MenuHomePhorge

D823.1775439279.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D823.1775439279.diff

diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py
--- a/pykolab/imap/__init__.py
+++ b/pykolab/imap/__init__.py
@@ -43,14 +43,13 @@
self.imap = None
def cleanup_acls(self, aci_subject):
- lm_suffix = ""
-
log.info(
_("Cleaning up ACL entries for %s across all folders") % (
aci_subject
)
)
+ lm_suffix = ""
if len(aci_subject.split('@')) > 1:
lm_suffix = "@%s" % (aci_subject.split('@')[1])
@@ -62,13 +61,6 @@
"user/*%s" % (lm_suffix)
)
- log.debug(
- _("Cleaning up ACL entries referring to identifier %s") % (
- aci_subject
- ),
- level=5
- )
-
# For all folders (shared and user), ...
folders = user_folders + shared_folders
@@ -76,8 +68,8 @@
# ... loop through them and ...
for folder in folders:
- # ... list the ACL entries -- but only if the folder still exists
- if self.imap.has_folder(folder):
+ try:
+ # ... list the ACL entries
acls = self.imap.lam(folder)
# For each ACL entry, see if we think it is a current, valid
@@ -100,13 +92,13 @@
)
self.set_acl(folder, acl_entry, '')
- else:
- log.debug(
- _("Folder %r disappeared (ACL cleanup for %r") % (
+
+ except Exception, errmsg:
+ log.error(
+ _("Failed to read/set ACL on folder %s: %r") % (
folder,
- aci_subject
- ),
- level=8
+ errmsg
+ )
)
def connect(self, uri=None, server=None, domain=None, login=True):

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 6, 1:34 AM (20 h, 29 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18835170
Default Alt Text
D823.1775439279.diff (1 KB)

Event Timeline