No description
spec | ||
src | ||
.editorconfig | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
shard.yml |
imap
A very much WIP imap library for crystal.
Installation
Add this to your application's shard.yml
:
dependencies:
imap:
github: crisward/imap
Usage
require "imap"
imap = Imap::Client.new(host: "imap.gmail.com", port: 993, username: "email@gmail.com", password: "*******")
mailboxes = imap.get_mailboxes
if mailboxes.size > 0
mailbox = mailboxes[0]
imap.set_mailbox(mailbox)
message_count = imap.get_message_count
puts "There are #{message_count} message in #{mailbox}"
end
imap.close
Contributing
- Fork it ( https://github.com/crisward/imap/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
- crisward Cris Ward - creator, maintainer