We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
err = c.Fetch(seqset, []string{"ENVELOPE", "RFC822.HEADER", "RFC822.TEXT"}, messages) if err != nil { log.Fatal(err) } for msg := range messages { log.Println(msg.Envelope.Subject) //log.Println(msg.Body) }
msg.body return text how to parse email body get struct
thk
The text was updated successfully, but these errors were encountered:
You can parse msg.Body using the net/mail package: see the example at https://golang.org/pkg/net/mail/#ReadMessage
msg.Body
net/mail
However, you must add BODY[] to the list of fetched items, otherwise msg.Body will be empty.
BODY[]
Sorry, something went wrong.
No branches or pull requests
msg.body return text how to parse email body get struct
thk
The text was updated successfully, but these errors were encountered: