Changeset View
Changeset View
Standalone View
Standalone View
pykolab/cli/cmd_mailbox_cleanup.py
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | def execute(*args, **kw): | ||||
if not conf.with_acls: | if not conf.with_acls: | ||||
return | return | ||||
for folder in [x for x in imap.lm() if not x.startswith('DELETED/')]: | for folder in [x for x in imap.lm() if not x.startswith('DELETED/')]: | ||||
folder = imap_utf7.decode(folder) | folder = imap_utf7.decode(folder) | ||||
acls = imap.list_acls(folder) | acls = imap.list_acls(folder) | ||||
for subject in acls.keys(): | for subject in acls: | ||||
if subject == 'anyone': | if subject == 'anyone': | ||||
log.info( | log.info( | ||||
_("Skipping removal of ACL %s for subject %s on folder %s") % ( | _("Skipping removal of ACL %s for subject %s on folder %s") % ( | ||||
acls[subject], | acls[subject], | ||||
subject, | subject, | ||||
folder | folder | ||||
) | ) | ||||
) | ) | ||||
Show All 32 Lines |