{"id":15032854,"url":"https://github.com/ruby/net-imap","last_synced_at":"2026-04-24T00:01:15.231Z","repository":{"id":38149975,"uuid":"240201477","full_name":"ruby/net-imap","owner":"ruby","description":"Ruby client api for Internet Message Access Protocol","archived":false,"fork":false,"pushed_at":"2026-04-18T18:24:46.000Z","size":2340,"stargazers_count":99,"open_issues_count":53,"forks_count":40,"subscribers_count":34,"default_branch":"master","last_synced_at":"2026-04-18T23:09:49.431Z","etag":null,"topics":["hacktoberfest","ruby"],"latest_commit_sha":null,"homepage":"https://ruby.github.io/net-imap","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-13T07:27:42.000Z","updated_at":"2026-04-17T15:21:24.000Z","dependencies_parsed_at":"2025-11-12T11:01:37.597Z","dependency_job_id":null,"html_url":"https://github.com/ruby/net-imap","commit_stats":{"total_commits":733,"total_committers":47,"mean_commits":"15.595744680851064","dds":0.4447476125511596,"last_synced_commit":"3094fcc0520ad2b53e0d619830d816a683847207"},"previous_names":[],"tags_count":62,"template":false,"template_full_name":null,"purl":"pkg:github/ruby/net-imap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-imap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-imap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-imap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-imap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/net-imap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-imap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32203362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T20:19:26.138Z","status":"ssl_error","status_checked_at":"2026-04-23T20:19:23.520Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["hacktoberfest","ruby"],"created_at":"2024-09-24T20:19:36.475Z","updated_at":"2026-04-24T00:01:15.226Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Net::IMAP\n\nNet::IMAP implements Internet Message Access Protocol (IMAP) client\nfunctionality.  The protocol is described in\n[RFC3501](https://www.rfc-editor.org/rfc/rfc3501),\n[RFC9051](https://www.rfc-editor.org/rfc/rfc9051) and various extensions.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'net-imap'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install net-imap\n\n## Usage\n\n### Connect with TLS to port 993\n\n```ruby\nimap = Net::IMAP.new('mail.example.com', ssl: true)\nimap.port          =\u003e 993\nimap.tls_verified? =\u003e true\ncase imap.greeting.name\nin /OK/i\n  # The client is connected in the \"Not Authenticated\" state.\n  imap.authenticate(\"PLAIN\", \"joe_user\", \"joes_password\")\nin /PREAUTH/i\n  # The client is connected in the \"Authenticated\" state.\nend\n```\n\n### List sender and subject of all recent messages in the default mailbox\n\n```ruby\nimap.examine('INBOX')\nimap.search([\"RECENT\"]).each do |message_id|\n  envelope = imap.fetch(message_id, \"ENVELOPE\")[0].attr[\"ENVELOPE\"]\n  puts \"#{envelope.from[0].name}: \\t#{envelope.subject}\"\nend\n```\n\n### Move all messages from April 2003 from \"Mail/sent-mail\" to \"Mail/sent-apr03\"\n\n```ruby\nimap.select('Mail/sent-mail')\nif imap.list('Mail/', 'sent-apr03').empty?\n  imap.create('Mail/sent-apr03')\nend\nimap.search([\"BEFORE\", \"30-Apr-2003\", \"SINCE\", \"1-Apr-2003\"]).each do |message_id|\n  if imap.capable?(:move) || imap.capable?(:IMAP4rev2)\n    imap.move(message_id, \"Mail/sent-apr03\")\n  else\n    imap.copy(message_id, \"Mail/sent-apr03\")\n    imap.store(message_id, \"+FLAGS\", [:Deleted])\n    imap.expunge\n  end\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\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 tags, 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/ruby/net-imap.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fnet-imap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fnet-imap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fnet-imap/lists"}