forked from Silverfish/proton-bridge
feat(GODT-3193): preserve attachment encoding.
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user