cleaning up mail formatting