currently trying to use package "github.com/emersion/go-imap"
in order to parse some emails however I've discovered when trying to parse emails from a specific company - they send an automated email on signup, I get returned the error "unhandled charset "ascii
" when attempting the following code:
mr, err := mail.CreateReader(r)
if err != nil {
log.Fatal(err)
}
the value r
is assigned with the code:
msg := <-messages
r := msg.GetBody("BODY[]")
if r == nil {
log.Fatal("Server didn't returned message body")
}
which attempts to get the body of the message in my inbox. I'm not sure what's causing this error to be thrown considering every other email I've tested it on works - it's just this specific email that gets sent that causes my code to fail. I've tried having it resend and tried new email addresses. Not sure what I can do