{"id":30195176,"url":"https://github.com/eval/uri-imap","last_synced_at":"2026-01-20T17:02:49.436Z","repository":{"id":309428409,"uuid":"1036004049","full_name":"eval/uri-imap","owner":"eval","description":"IMAP URIs","archived":false,"fork":false,"pushed_at":"2025-08-11T12:34:56.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-21T21:52:28.264Z","etag":null,"topics":["gem","imap","ruby","rubygem","uri"],"latest_commit_sha":null,"homepage":"https://eval.github.io/uri-imap/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eval.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-11T12:19:05.000Z","updated_at":"2025-08-11T12:36:21.000Z","dependencies_parsed_at":"2025-08-11T21:58:49.128Z","dependency_job_id":"0bce80e1-76ae-403a-946f-fa8fb65175ff","html_url":"https://github.com/eval/uri-imap","commit_stats":null,"previous_names":["eval/uri-imap"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eval/uri-imap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Furi-imap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Furi-imap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Furi-imap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Furi-imap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eval","download_url":"https://codeload.github.com/eval/uri-imap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eval%2Furi-imap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","imap","ruby","rubygem","uri"],"created_at":"2025-08-13T04:01:40.847Z","updated_at":"2026-01-20T17:02:49.420Z","avatar_url":"https://github.com/eval.png","language":"Ruby","readme":"# URI::IMAP [![Gem Version](https://badge.fury.io/rb/uri-imap.svg)](https://badge.fury.io/rb/uri-imap) [![API Docs](https://img.shields.io/badge/API%20Docs-YARD-red?style=flat-square\u0026logo=ruby)](https://eval.github.io/uri-imap/)\n\nExtends Ruby's `URI` with support for IMAP-uri's.  \n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n```bash\nbundle add uri-imap\n```\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n```bash\ngem install uri-imap\n```\n\n## Usage\n\n### parse\n\n```ruby\nu = URI(\"imaps+plain://user%40gmail.com:p%40ss@imap.gmail.com\")\n\nurl.scheme           #=\u003e \"imaps+plain\"\nurl.auth             #=\u003e \"plain\"\nurl.starttls         #=\u003e false\nurl.starttls?        #=\u003e false\nurl.tls?             #=\u003e true\nurl.userinfo         #=\u003e \"user%40gmail.com:p%40ss\"\nurl.decoded_userinfo #=\u003e \"user@gmail.com:p@ss\"\nurl.decoded_user     #=\u003e \"user@gmail.com\"\nurl.user             #=\u003e \"user%40gmail.com\"\nurl.decoded_password #=\u003e \"p@ss\"\nurl.password         #=\u003e \"p%40ss\"\nurl.host             #=\u003e \"imap.gmail.com\"\nurl.port             #=\u003e 993\n```\n\n### to_h\n\n```ruby\nURI(\"imaps+login://user%40gmail.com:p%40ss@imap.gmail.com\").to_h\n#=\u003e\n{auth: \"login\",\n host: \"imap.gmail.com\",\n port: 993,\n scheme: \"imaps+login\",\n starttls: false,\n tls: true,\n user: \"user@gmail.com\",\n password: \"p@ss\"}\n```\n\n## IMAP-URI\n\nThere's no official specification for IMAP-URIs. There's some prior work though. This implementation is heavily inspired by [aerc](https://git.sr.ht/~rjarry/aerc/tree/master/item/doc/aerc-imap.5.scd).  \n\n`\u003cscheme\u003e[+\u003cauth\u003e]://[\u003cuser\u003e[:\u003cpassword\u003e]@]\u003chost\u003e[:\u003cport\u003e][?\u003cquery\u003e]`\n\n### scheme\n\n- `imap`  \n  IMAP with STARTTLS (i.e. `url.starttls #=\u003e :always`).\n- `imap+insecure`  \n  IMAP without STARTTLS (i.e. `url.starttls #=\u003e false`)..\n- `imaps`  \n  IMAP with TLS.\n\n\n### auth\n\nAny value for auth that passes the URI-parser is acceptable. Though the following values have special meaning:\n\n- `none`  \n  No authentication is required.\n- `plain`  \n  Authenticate with a username and password using AUTH PLAIN. This is the default behavior when no authentication is provided.\n\n\u003e [!NOTE]\n\u003e any query's value for `auth` takes precedence.\n\n### Examples\n\nTBD\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\nUse `bin/yard server --reload` when working on documentation.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/eval/uri-imap.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feval%2Furi-imap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feval%2Furi-imap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feval%2Furi-imap/lists"}