So I have a Raspberry Pi unit that is set up to check a gmail account and if new mail appears, it reads it out loud via festival.
I interact with Festival via a crude 'echo "' + str(message) + '" | festival --tts'
call where message is the content of an incoming email.
I am guessing that somebody could send something nasty in that message and destroy the computer and I am wondering if there is a good way to clean the message and make the process more safe in general.
I can validate email addresses but, even within validated emails, I want to have any checks I can in place.