{"id":15032713,"url":"https://github.com/ruby/net-pop","last_synced_at":"2025-04-05T21:10:47.052Z","repository":{"id":35943237,"uuid":"200769468","full_name":"ruby/net-pop","owner":"ruby","description":"This library provides functionality for retrieving email via POP3, the Post Office Protocol version 3. For details of POP3","archived":false,"fork":false,"pushed_at":"2024-06-24T00:34:12.000Z","size":198,"stargazers_count":20,"open_issues_count":9,"forks_count":14,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-01T14:11:11.371Z","etag":null,"topics":["hacktoberfest","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","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":"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}},"created_at":"2019-08-06T03:28:08.000Z","updated_at":"2024-12-17T07:48:36.000Z","dependencies_parsed_at":"2024-06-18T16:54:36.218Z","dependency_job_id":"b5d69b44-7a13-4ca5-836d-79d8b90bb840","html_url":"https://github.com/ruby/net-pop","commit_stats":{"total_commits":153,"total_committers":29,"mean_commits":5.275862068965517,"dds":0.607843137254902,"last_synced_commit":"e8d0afe2773b9eb6a23c39e9e437f6fc0fc7c733"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-pop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-pop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-pop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fnet-pop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/net-pop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234914,"owners_count":20905852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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:13.604Z","updated_at":"2025-04-05T21:10:47.020Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Net::POP3\n\nThis library provides functionality for retrieving\nemail via POP3, the Post Office Protocol version 3. For details\nof POP3, see [RFC1939](http://www.ietf.org/rfc/rfc1939.txt).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'net-pop'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install net-pop\n\n## Usage\n\nThis example retrieves messages from the server and deletes them\non the server.\n\nMessages are written to files named 'inbox/1', 'inbox/2', ....\nReplace 'pop.example.com' with your POP3 server address, and\n'YourAccount' and 'YourPassword' with the appropriate account\ndetails.\n\n```ruby\nrequire 'net/pop'\n\npop = Net::POP3.new('pop.example.com')\npop.start('YourAccount', 'YourPassword')             # (1)\nif pop.mails.empty?\n  puts 'No mail.'\nelse\n  i = 0\n  pop.each_mail do |m|   # or \"pop.mails.each ...\"   # (2)\n    File.open(\"inbox/#{i}\", 'w') do |f|\n      f.write m.pop\n    end\n    m.delete\n    i += 1\n  end\n  puts \"#{pop.mails.size} mails popped.\"\nend\npop.finish                                           # (3)\n```\n\n1. Call Net::POP3#start and start POP session.\n2. Access messages by using POP3#each_mail and/or POP3#mails.\n3. Close POP session by calling POP3#finish or use the block form of #start.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `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-pop.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fnet-pop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fnet-pop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fnet-pop/lists"}