Finishing up this round of mail plugin, upgrading permission functions to properly handle UUID (not just commands)