some cosmetics on the mail module and add prototype for user notifications about permissions