Add functional spec for mail configuration

I add functional test specifications for mail configuration in system
settings.

Furthermore, I improve the JavaScript functions enable() and disable()
which now accept a boolean value to set the enable/disable status.