commit | 83f292f163ac2f85e106f662f19b54f9a8384a45 | [log] [tgz] |
---|---|---|
author | Dusan Kasan <me@dusankasan.com> | Thu Apr 13 00:19:06 2017 +0200 |
committer | Dusan Kasan <me@dusankasan.com> | Thu Apr 13 00:19:15 2017 +0200 |
tree | b00466ee020dbcb31b482ff427bd1798e2231f12 | |
parent | b49ceb6f6d49a21d04be6ff8867b2fdbd97a9817 [diff] |
CircleCI config added to integrate Coveralls
This library allows for parsing an email message into a more convenient form than the net/mail
provides. Where the net/mail
just gives you a map of header fields and a io.Reader
of its body, Parsemail allows access to all the standard header fields set in RFC5322, html/text body as well as attachements/embedded content as binary streams with metadata.
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) fmt.Println(email.From) fmt.Println(email.To) fmt.Println(email.HTMLBody)
It is missing some tests, and needs more work. Use at your own discretion.