Reformat of GreenMail.groovy