feat(GODT-3193): preserve attachment encoding.

This commit is contained in:
Jakub
2024-02-29 12:21:29 +01:00
committed by Jakub Cuth
parent 54859a34b2
commit 63e272e270
3 changed files with 37 additions and 0 deletions

View File

@ -205,6 +205,10 @@ func convertForeignEncodings(p *parser.Parser) error {
return p.ConvertMetaCharset()
}).
RegisterContentTypeHandler("text/.*", func(p *parser.Part) error {
if p.IsAttachment() {
return nil
}
return p.ConvertToUTF8()
}).
Walk()