an0nfunc

Results 4 comments of an0nfunc

I also got this problem. Fixed by importing `github.com/emersion/go-message/charset` in https://github.com/knadh/listmonk/blob/d42c676503b42232e25620ab17d74f288ddd1109/internal/bounce/mailbox/pop.go#L8 ```go import ( "encoding/json" "regexp" "time" "github.com/emersion/go-message" _ "github.com/emersion/go-message/charset" "github.com/knadh/go-pop3" "github.com/knadh/listmonk/models" ) ``` I tested this and the error...

~~`us_ascii` is a weird encoding, and it's [not supported](https://pkg.go.dev/golang.org/x/text/encoding/charmap#Charmap) by `golang.org/x/text/encoding/charmap`.~~ ([Apparently that is how ASCII should be called now.](https://www.iana.org/assignments/character-sets/character-sets.xhtml)) What server do you use?

Probably coming from a mail witch itself comes from some non-UTF-8-friendly source. I checked upstream (`github.com/emersion/go-message`) and they seem to have setup a [method for handling such quirks](https://github.com/emersion/go-message/blob/e8079699eb3a41bb9f0b807d2661ba43f603361a/charset/charset.go#L25) already. Maybe...

Just a quick update: Currently it seems to work for me, but I have not changed anything afaik.