https://github.com/ruby/net-pop
This library provides functionality for retrieving email via POP3, the Post Office Protocol version 3. For details of POP3
https://github.com/ruby/net-pop
Keywords
hacktoberfest ruby
Keywords from Contributors
webrick repl bigdecimal debugging-tool debugger strscan documentation-tool rubygems lalr-parser-generator parser-generator
Last synced: about 20 hours ago
JSON representation
Repository metadata
This library provides functionality for retrieving email via POP3, the Post Office Protocol version 3. For details of POP3
- Host: GitHub
- URL: https://github.com/ruby/net-pop
- Owner: ruby
- License: bsd-2-clause
- Created: 2019-08-06T03:28:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-25T02:16:38.000Z (3 months ago)
- Last Synced: 2026-01-26T06:09:46.834Z (about 1 month ago)
- Topics: hacktoberfest, ruby
- Language: Ruby
- Homepage:
- Size: 199 KB
- Stars: 20
- Watchers: 31
- Forks: 14
- Open Issues: 9
- Releases: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
README.md
Net::POP3
This library provides functionality for retrieving
email via POP3, the Post Office Protocol version 3. For details
of POP3, see RFC1939.
Installation
Add this line to your application's Gemfile:
gem 'net-pop'
And then execute:
$ bundle
Or install it yourself as:
$ gem install net-pop
Usage
This example retrieves messages from the server and deletes them
on the server.
Messages are written to files named 'inbox/1', 'inbox/2', ....
Replace 'pop.example.com' with your POP3 server address, and
'YourAccount' and 'YourPassword' with the appropriate account
details.
require 'net/pop'
pop = Net::POP3.new('pop.example.com')
pop.start('YourAccount', 'YourPassword') # (1)
if pop.mails.empty?
puts 'No mail.'
else
i = 0
pop.each_mail do |m| # or "pop.mails.each ..." # (2)
File.open("inbox/#{i}", 'w') do |f|
f.write m.pop
end
m.delete
i += 1
end
puts "#{pop.mails.size} mails popped."
end
pop.finish # (3)
- Call Net::POP3#start and start POP session.
- Access messages by using POP3#each_mail and/or POP3#mails.
- Close POP session by calling POP3#finish or use the block form of #start.
Development
After 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.
To 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.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/net-pop.
Owner metadata
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Delete event: 1
- Pull request event: 2
- Issue comment event: 3
- Create event: 2
Last Year
- Delete event: 1
- Pull request event: 2
- Create event: 2
Committers metadata
Last synced: 1 day ago
Total Commits: 155
Total Committers: 26
Avg Commits per committer: 5.962
Development Distribution Score (DDS): 0.613
Commits in past year: 2
Committers in past year: 1
Avg Commits per committer in past year: 2.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| aamine | a****e@b****e | 60 |
| Hiroshi SHIBATA | h****t@r****g | 36 |
| kazu | k****u@b****e | 9 |
| matz | m****z@b****e | 7 |
| nobu | n****u@b****e | 7 |
| dependabot[bot] | 4****] | 4 |
| drbrain | d****n@b****e | 4 |
| glass | g****s@b****e | 3 |
| akr | a****r@b****e | 3 |
| gotoyuzo | g****o@b****e | 2 |
| gsinclair | g****r@b****e | 2 |
| normal | n****l@b****e | 2 |
| Olle Jonsson | o****n@g****m | 2 |
| shugo | s****o@b****e | 2 |
| Benoit Daloze | e****p@g****m | 1 |
| Jeremy Evans | c****e@j****t | 1 |
| Junichi Sato | 2****1 | 1 |
| Takashi Kokubun | t****n@g****m | 1 |
| Vít Ondruch | v****h@r****m | 1 |
| zzak | z****k@b****e | 1 |
| a_matsuda | a****a@b****e | 1 |
| eban | e****n@b****e | 1 |
| knu | k****u@b****e | 1 |
| marcandre | m****e@b****e | 1 |
| mohamed | m****z@g****m | 1 |
| naruse | n****e@b****e | 1 |
Committer domains:
- redhat.com: 1
- jeremyevans.net: 1
- ruby-lang.org: 1
Issue and Pull Request metadata
Last synced: 5 days ago
Total issues: 6
Total pull requests: 25
Average time to close issues: 4 days
Average time to close pull requests: 24 days
Total issue authors: 5
Total pull request authors: 12
Average comments per issue: 2.17
Average comments per pull request: 0.72
Merged pull request: 20
Bot issues: 0
Bot pull requests: 4
Past year issues: 0
Past year pull requests: 2
Past year average time to close issues: N/A
Past year average time to close pull requests: about 1 month
Past year issue authors: 0
Past year pull request authors: 1
Past year average comments per issue: 0
Past year average comments per pull request: 0.0
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 2
Top Issue Authors
- Neustradamus (2)
- pyama86 (1)
- dirkjonker (1)
- kkohrt (1)
- 9mm (1)
Top Pull Request Authors
- hsbt (7)
- dependabot[bot] (4)
- nevans (2)
- nobu (2)
- olleolleolle (2)
- krhitoshi (2)
- k0kubun (1)
- voxik (1)
- sato11 (1)
- eregon (1)
- AlessioC31 (1)
- mohamedhafez (1)
Top Issue Labels
Top Pull Request Labels
- dependencies (4)
- github_actions (2)
Package metadata
- Total packages: 21
-
Total downloads:
- rubygems: 399,248,429 total
- Total docker downloads: 7,257,417,380
- Total dependent packages: 12 (may contain duplicates)
- Total dependent repositories: 33,565 (may contain duplicates)
- Total versions: 33
- Total maintainers: 2
gem.coop: net-pop
Ruby client library for POP3.
- Homepage: https://github.com/ruby/net-pop
- Documentation: http://www.rubydoc.info/gems/net-pop/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 0.1.2 (published over 3 years ago)
- Last Synced: 2026-02-28T10:31:14.565Z (3 days ago)
- Versions: 3
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 199,614,799 Total
- Docker Downloads: 3,628,708,690
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.046%
- Downloads: 0.139%
- Maintainers (1)
rubygems.org: net-pop
Ruby client library for POP3.
- Homepage: https://github.com/ruby/net-pop
- Documentation: http://www.rubydoc.info/gems/net-pop/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 0.1.2 (published over 3 years ago)
- Last Synced: 2026-02-28T16:00:36.299Z (3 days ago)
- Versions: 3
- Dependent Packages: 12
- Dependent Repositories: 33,565
- Downloads: 199,633,630 Total
- Docker Downloads: 3,628,708,690
-
Rankings:
- Docker downloads count: 0.025%
- Dependent repos count: 0.183%
- Downloads: 0.326%
- Dependent packages count: 1.745%
- Average: 3.745%
- Forks count: 7.719%
- Stargazers count: 12.472%
- Maintainers (1)
proxy.golang.org: github.com/ruby/net-pop
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby/net-pop#section-documentation
- Licenses: bsd-2-clause
- Latest release: v0.1.2 (published over 3 years ago)
- Last Synced: 2026-02-28T16:00:37.663Z (3 days ago)
- Versions: 3
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 5.952%
- Stargazers count: 8.302%
- Average: 8.658%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
alpine-v3.18: ruby-net-pop
Ruby client library for POP3
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r0 (published almost 3 years ago)
- Last Synced: 2026-02-04T13:20:46.715Z (27 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 12.511%
- Forks count: 24.079%
- Stargazers count: 25.964%
- Maintainers (1)
alpine-v3.18: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r0 (published almost 3 years ago)
- Last Synced: 2026-02-03T16:28:10.441Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 12.511%
- Forks count: 24.079%
- Stargazers count: 25.964%
- Maintainers (1)
alpine-v3.16: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.1-r0 (published almost 4 years ago)
- Last Synced: 2026-03-02T14:39:03.199Z (about 22 hours ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 16.328%
- Forks count: 18.325%
- Stargazers count: 19.675%
- Dependent packages count: 27.311%
- Maintainers (1)
alpine-v3.16: ruby-net-pop
Ruby client library for POP3
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.1-r0 (published almost 4 years ago)
- Last Synced: 2026-03-01T14:13:33.265Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 16.328%
- Forks count: 18.325%
- Stargazers count: 19.675%
- Dependent packages count: 27.311%
- Maintainers (1)
alpine-edge: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r2 (published 10 months ago)
- Last Synced: 2026-02-23T08:02:01.473Z (8 days ago)
- Versions: 4
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 14.641%
- Average: 16.845%
- Forks count: 25.231%
- Stargazers count: 27.509%
- Maintainers (1)
alpine-edge: ruby-net-pop
Ruby client library for POP3
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r2 (published 10 months ago)
- Last Synced: 2026-02-23T08:02:02.193Z (8 days ago)
- Versions: 4
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 14.641%
- Average: 16.967%
- Forks count: 25.72%
- Stargazers count: 27.509%
- Maintainers (1)
alpine-v3.17: ruby-net-pop
Ruby client library for POP3
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.1-r0 (published almost 4 years ago)
- Last Synced: 2026-02-03T13:40:41.309Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 18.094%
- Forks count: 21.708%
- Stargazers count: 23.414%
- Dependent packages count: 27.254%
- Maintainers (1)
alpine-v3.17: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.1-r0 (published almost 4 years ago)
- Last Synced: 2026-03-01T14:18:04.456Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 18.094%
- Forks count: 21.708%
- Stargazers count: 23.414%
- Dependent packages count: 27.254%
- Maintainers (1)
alpine-v3.21: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r1 (published about 2 years ago)
- Last Synced: 2026-03-01T14:14:26.306Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.23: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
alpine-v3.22: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r2 (published 10 months ago)
- Last Synced: 2026-03-01T14:14:02.584Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.22: ruby-net-pop
Ruby client library for POP3
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r2 (published 10 months ago)
- Last Synced: 2026-03-01T14:13:58.637Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.19: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r0 (published almost 3 years ago)
- Last Synced: 2026-03-02T15:28:01.523Z (about 21 hours ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.20: ruby-net-pop-doc
Ruby client library for POP3 (ri docs)
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r1 (published about 2 years ago)
- Last Synced: 2026-02-03T13:22:27.975Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.23: ruby-net-pop
Ruby client library for POP3
alpine-v3.21: ruby-net-pop
Ruby client library for POP3
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r1 (published about 2 years ago)
- Last Synced: 2026-03-01T14:14:23.766Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.20: ruby-net-pop
Ruby client library for POP3
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r1 (published about 2 years ago)
- Last Synced: 2026-03-01T14:15:03.942Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.19: ruby-net-pop
Ruby client library for POP3
- Homepage: https://github.com/ruby/net-pop
- Licenses: BSD-2-Clause AND Ruby
- Latest release: 0.1.2-r0 (published almost 3 years ago)
- Last Synced: 2026-03-01T14:17:19.169Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
Dependencies
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- bundler >= 0 development
- rake >= 0 development
- test-unit >= 0 development
- net-protocol >= 0
Score: 29.384239924354866