simple-mail-parser.cr
simple-mail-parser
A quick and dirty Crystal email parser.
Port of https://github.com/jaronson/simple_mail_parser.
Installation
- Add the dependency to your
shard.yml
:
dependencies:
simple-mail-parser:
github: larskluge/simple-mail-parser.cr
- Run
shards install
Usage
require "simple-mail-parser"
eml = "To: foo@bar.com\r\nContent-Type: text/plain\r\n\r\nHello"
message = SimpleMailParser.parse(eml)
message.to.should eq "foo@bar.com"
message.body.should eq "Hello"
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/larskluge/simple-mail-parser.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Lars Kluge - creator and maintainer
Repository
simple-mail-parser.cr
Owner
Statistic
- 1
- 0
- 0
- 0
- 1
- almost 6 years ago
- December 9, 2018
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 19:56:55 GMT
Languages