nntp-lib
Version, currently 1.1.015 versions
- 1.2.2latestJun 6, 2021
- 1.2.1not indexedJun 6, 2021
- 1.2.0not indexedJun 6, 2021
- 1.1.0not indexedJun 6, 2021
- 1.0.10not indexedJun 6, 2021
- 1.0.9not indexedJun 6, 2021
- 1.0.8not indexedJun 6, 2021
- 1.0.7not indexedJun 6, 2021
- 1.0.6not indexedJun 6, 2021
- 1.0.5not indexedJun 6, 2021
- 1.0.4not indexedJun 6, 2021
- 1.0.3not indexedJun 6, 2021
- 1.0.2not indexedJun 6, 2021
- 1.0.1not indexedJun 6, 2021
- 1.0.0not indexedJun 6, 2021
github.com/spoved/nntp-lib.cr
Crystal lib to provide the minimum requisite functions for NNTP (Network News Transfer Protocol) for clients
Nothing has been indexed for 1.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
nntp-lib:
github: spoved/nntp-lib.cr
version: ~> 1.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 1.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
nntp-lib
This is a pure Crystal source (single file, fully documented) code, provides a minimum requisite functions for NNTP (Network News Transfer Protocol) clients, per RFC977, extensions RFC2980 and authentication DRAFT.
Installation
-
Add the dependency to your
shard.yml:dependencies: nntp-lib: github: spoved/nntp-lib.cr -
Run
shards install
Usage
The NNTP socket can be established via the start method which yields itself to the provided block.
require "nntp-lib"
nntp = Net::NNTP.new("secure.usenetserver.com", 563)
nntp.start(user: "myuser", secret: "pass", :original) do |socket|
# Perform nntp requests here
end
The socket can also be started without a block, but finish should be called to close the nntp session.
require "nntp-lib"
nntp = Net::NNTP.new("secure.usenetserver.com", 563)
nntp.start(user: "myuser", secret: "pass", :original)
# Perform nntp requests here
nntp.finish
Missing Features
- RFC977
- 3.4. The IHAVE command
- 3.10. The POST command
- RFC2980
- 1.3.1 The TAKETHIS command
- 1.4.1 The XREPLIC command
- 2.1.1 Extensions to the LIST command
- 2.2 LISTGROUP
- 2.4 XGTITLE
- 2.7 XINDEX
- 2.9 XPAT
- 2.10 The XPATH command
- 2.11 The XROVER command
- 2.12 XTHREAD
- 3.3 The WILDMAT format
- Misc commands
- xfeature compress gzip [terminator]
- xzver [range]
- xzhdr field [range]
Contributing
- Fork it (https://github.com/spoved/nntp-lib.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Holden Omans - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.1.0- Tagged
- Jun 6, 2021
- Commit
8b707834653e- Indexed
- not yet
Dependents
Repository
github.com/spoved/nntp-lib.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 15