Skip to content

Commit

Permalink
lib-storage: Ignore ACLs when autoexpunging.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jan 18, 2016
1 parent c80cf58 commit 96c8008
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib-storage/mail-autoexpunge.c
Expand Up @@ -79,7 +79,10 @@ static void mail_namespace_autoexpunge(struct mail_namespace *ns)
else
vname = t_strconcat(ns->prefix, (*box_set)->name, NULL);
expire_time = ioloop_time - (*box_set)->autoexpunge;
box = mailbox_alloc(ns->list, vname, 0);
/* autoexpunge is configured by admin, so we can safely ignore
any ACLs the user might normally have against expunging in
the mailbox. */
box = mailbox_alloc(ns->list, vname, MAILBOX_FLAG_IGNORE_ACLS);
if (mailbox_autoexpunge(box, expire_time) < 0) {
i_error("Failed to autoexpunge mailbox '%s': %s",
mailbox_get_vname(box),
Expand Down

0 comments on commit 96c8008

Please sign in to comment.