mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
Parsing non-utf8 multipart/alternative message
This commit is contained in:
@ -102,6 +102,9 @@ func convertForeignEncodings(p *parser.Parser) error {
|
||||
RegisterContentTypeHandler("text/.*", func(p *parser.Part) error {
|
||||
return p.ConvertToUTF8()
|
||||
}).
|
||||
RegisterContentTypeHandler("multipart/alternative", func(p *parser.Part) error {
|
||||
return p.ConvertToUTF8()
|
||||
}).
|
||||
RegisterDefaultHandler(func(p *parser.Part) error {
|
||||
t, _, _ := p.Header.ContentType()
|
||||
logrus.WithField("type", t).Trace("Not converting part to utf-8")
|
||||
|
||||
Reference in New Issue
Block a user