Readme typos fixed
1 file changed
tree: e1d07b32109b10d0c6acc44f87dc517b75d2a60b
  1. CHANGELOG.md
  2. CONTRIBUTING.md
  3. LICENSE.md
  4. parsemail.go
  5. parsemail_test.go
  6. README.md
README.md

Parsemail - simple email parsing Go library

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()) // parsed from header on demand
fmt.Println(email.Cc()) // parsed from header on demand
fmt.Println(email.HTMLBody) // this is not a method, parsed beforehand

This library is WIP.

It is missing some tests, and needs more work. Use at your own discretion.

TODO

  • CI
  • Readme with use cases
  • More tests for 100% coverage
  • email address type => getEmail, getName
  • quoted§ text?