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 parser-generator lalr-parser-generator
Last synced: about 5 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 (15 days ago)
- Last Synced: 2025-12-07T02:38:16.055Z (3 days 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
- Issue comment event: 3
- Pull request event: 2
- Create event: 2
Last Year
- Delete event: 1
- Issue comment event: 2
- 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: 15 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: 19
-
Total downloads:
- rubygems: 371,048,951 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: 31
- 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 about 3 years ago)
- Last Synced: 2025-12-09T19:02:44.439Z (about 12 hours ago)
- Versions: 3
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 185,784,018 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 about 3 years ago)
- Last Synced: 2025-12-06T00:01:29.745Z (4 days ago)
- Versions: 3
- Dependent Packages: 12
- Dependent Repositories: 33,565
- Downloads: 185,264,933 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 about 3 years ago)
- Last Synced: 2025-12-06T00:01:32.301Z (4 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 over 2 years ago)
- Last Synced: 2025-12-04T12:07:52.977Z (6 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 over 2 years ago)
- Last Synced: 2025-12-03T14:35:24.333Z (7 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
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 over 3 years ago)
- Last Synced: 2025-12-06T00:01:34.971Z (4 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-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 over 3 years ago)
- Last Synced: 2025-12-02T10:52:55.348Z (8 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 8 months ago)
- Last Synced: 2025-11-23T05:04:49.546Z (17 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 8 months ago)
- Last Synced: 2025-11-23T05:04:52.493Z (17 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-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 over 3 years ago)
- Last Synced: 2025-12-06T00:01:44.672Z (4 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
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 over 3 years ago)
- Last Synced: 2025-12-03T11:54:54.521Z (7 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.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 over 2 years ago)
- Last Synced: 2025-12-06T00:01:47.951Z (4 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.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 almost 2 years ago)
- Last Synced: 2025-12-06T00:01:55.223Z (4 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 8 months ago)
- Last Synced: 2025-12-06T00:01:59.815Z (4 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 over 2 years ago)
- Last Synced: 2025-12-02T13:28:39.801Z (8 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.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 almost 2 years ago)
- Last Synced: 2025-12-06T00:01:46.913Z (4 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-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 almost 2 years ago)
- Last Synced: 2025-12-03T11:52:36.319Z (7 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 almost 2 years ago)
- Last Synced: 2025-12-06T00:01:49.536Z (4 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-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 8 months ago)
- Last Synced: 2025-12-06T00:01:50.536Z (4 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.380550147183556