How to handle email with a script. Yay.