almost simple imap2smtp script in python, but has the option to convert html  parts of the email to text if needed.