mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
fix(GODT-2201): Add missing rfc5322.CharsetReader initialization
This commit is contained in:
@ -25,6 +25,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
|
"github.com/ProtonMail/gluon/rfc5322"
|
||||||
"github.com/ProtonMail/gluon/rfc822"
|
"github.com/ProtonMail/gluon/rfc822"
|
||||||
"github.com/ProtonMail/go-proton-api"
|
"github.com/ProtonMail/go-proton-api"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
@ -37,6 +38,7 @@ import (
|
|||||||
func init() {
|
func init() {
|
||||||
rfc822.ParseMediaType = ParseMediaType
|
rfc822.ParseMediaType = ParseMediaType
|
||||||
proton.CharsetReader = CharsetReader
|
proton.CharsetReader = CharsetReader
|
||||||
|
rfc5322.CharsetReader = CharsetReader
|
||||||
}
|
}
|
||||||
|
|
||||||
func CharsetReader(charset string, input io.Reader) (io.Reader, error) {
|
func CharsetReader(charset string, input io.Reader) (io.Reader, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user