Applying retention policies to mailboxes