commit | 17e497ea989bd4ca715510722d7d12cec763fa49 | [log] [tgz] |
---|---|---|
author | Dusan Kasan <me@dusankasan.com> | Mon Apr 10 22:44:22 2017 +0200 |
committer | Dusan Kasan <me@dusankasan.com> | Mon Apr 10 22:44:22 2017 +0200 |
tree | 76218eb9b0322dbae8a4e0d119053945be9503dc |
Initial commit
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.