Added waldo filtering to send multipart or plaintext messages based on the template...