email processing sample