email processing example scripts