Simple usage:
var reader io.Reader // this reads an email message email, err := parsemail.Parse(reader) // returns Email struct and error if err != nil { // handle error } fmt.Println(email.Subject()) // not a method, parsed from header on demand fmt.Println(email.Cc()) // not a method, parsed from header on demand fmt.Println(email.HTMLBody) // this is not a method
It is missing some tests, and needs more work. Use at your own discretion.