chore: tidy up before merge

This commit is contained in:
James Houlahan
2020-09-14 14:08:05 +02:00
parent 97b64ebb70
commit 5bca6fc3cf
2 changed files with 1 additions and 4 deletions

View File

@ -91,7 +91,6 @@ func Parse(r io.Reader, key, keyName string) (m *pmapi.Message, mimeBody, plainB
func convertForeignEncodings(p *parser.Parser) error {
logrus.Debug("Converting foreign encodings")
// HELP: Is it correct to only do this to text types?
return p.NewWalker().
RegisterContentTypeHandler("text/html", func(p *parser.Part) error {
if err := p.ConvertToUTF8(); err != nil {