Fixes mail folder permission assignment