forked from Silverfish/proton-bridge
feat(GODT-3113): Only force UTF-8 charset for HTML part when needed.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user