Fix loading mail settings; thanks to jreidinger for debugging