solved https://github.com/globaleaks/GlobaLeaks/issues/497 and solved a potential loop in mail exception