WOrking on emails before templating