Is there currently a tool or script that I can use to strip html from emails? Basically, it should work like this:
- Read the message from stdin - If there is no html, leave as is - If it finds both html and plain text, strip the html attachment - If it finds html but no plain text, leave as is In case something like this doesn't exist, I wouldn't mind writing one for myself (awk sounds like the right tool for the job).