Bugfix: Caching issues with mail settings

The code no longer uses a custom API call. Instead all the logic is
handled on the client side.