feat(GODT-3113): Only force UTF-8 charset for HTML part when needed.

This commit is contained in:
Romain Le Jeune
2023-11-10 12:50:15 +00:00
parent fa430ee0fb
commit 83bbdbd63e
5 changed files with 30 additions and 22 deletions

View File

@ -197,9 +197,6 @@ func convertForeignEncodings(p *parser.Parser) error {
return p.NewWalker().
RegisterContentTypeHandler("text/html", func(p *parser.Part) error {
if p.IsAttachment() {
return nil
}
if err := p.ConvertToUTF8(); err != nil {
return err
}