imap
Version, currently master branch1 version
- master branchlatestSep 7, 2017
github.com/crisward/imap
Imap client library for Crystal-Lang
13 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
imap:
github: crisward/imap
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- Cris Ward <cris@duodesign.co.uk>
Dependencies
This version declares no dependencies.
README
# imap
A very much WIP imap library for crystal.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
imap:
github: crisward/imap
```
## Usage
```crystal
require "imap"
imap = Imap::Client.new(host: "imap.gmail.com", port: 993, username: "email@gmail.com", password: "*******")
mailboxes = imap.list
if mailboxes.size > 0
mailbox = mailboxes[0]
imap.select(mailbox)
status = imap.status(mailbox, ["MESSAGES", "UNSEEN"])
puts "There are #{status["MESSAGES"]} message in #{mailbox} #{status["UNSEEN"]} unread."
end
imap.close
```
## Testing
Need to start writing tests.
* https://github.com/ruby/ruby/tree/ruby_2_4/test/net/imap for inspiration
* https://github.com/tedious/DovecotTesting
## Contributing
1. Fork it ( https://github.com/crisward/imap/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [crisward](https://github.com/crisward) Cris Ward - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Sep 7, 2017
- Crystal
0.23.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/crisward/imap
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1