Fix reading of HTML emails