Commit graph

6 commits

Author SHA1 Message Date
johnanleitner1-Coder
c947fd9bf5 fix(nntp): support open-ended OVER/XOVER ranges ("n-")
parseRange treated a range of the form "low-" (low article to the
highest available) as malformed and returned an empty (0,0) range, so
OVER/XOVER "n-" returned no articles instead of every article >= n.
RFC 3977 defines a range as a single number, "number-", or
"number-number"; the open-ended form is common in real NNTP clients.

Handle "low-" as (low, MaxInt64), reject specs with more than one dash
(e.g. "1-2-3") as malformed, and keep existing malformed handling so a
bad range still yields an empty range rather than "all articles".
Adds tests for closed, open-ended, empty, and malformed specs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 16:28:57 -07:00
threebeats
5f9d66e1a7
fix: reject malformed NNTP OVER ranges instead of returning all articles (#48)
parseRange previously returned (0, MaxInt64) for unparseable input,
causing OVER/XOVER to deliver the full article overview instead of
returning an empty result. Now returns (0, 0) for any parse error.

Fixes #45

Co-authored-by: root <root@vultr.guest>
2026-06-22 05:22:58 -07:00
lazyGPT07
c480e62f39
Fix NNTP IHAVE missing message ID (#24)
Co-authored-by: lazyGPT07 <lazyGPT07@users.noreply.github.com>
2026-06-15 01:34:13 -07:00
phucnguyen1707
36c6e0e275
Handle repeated NNTP command whitespace (#20) 2026-06-14 20:25:04 -07:00
phucnguyen1707
0944fa2cb4
Merge pull request #22 from phucnguyen1707/fix-over-single-article
Fix single article NNTP overview ranges
2026-06-14 20:24:50 -07:00
3b6b9a4a78 feat: members-only Usenet (NNTP) + Forgejo git provisioning + founding-lifetime $99
WIP feature branch: NNTPS news server, per-member Forgejo accounts on email
confirm, and founding-lifetime pricing tier.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 14:26:23 +00:00