#!/bin/bash

ARGUMENTS=`defaults read com.freron.MailMate MmHTML2TextArguments 2>/dev/null`
# First part is to handle some annoying Microsoft generated tags.
perl -pe 's,</?o:[^>]*>,,g' | "${MM_BUNDLE_SUPPORT}/html2text" --body-width=0 --unicode-snob --no-wrap-links --protect-links --images-with-size ${ARGUMENTS}
