A forum's libraries are the file areas of its group (file areas get a
group, set by bbs filearea group), numbered from 0. LIB n opens one at
LIB !: DIR, BRO and SCA list the files the period's way ([ppn],
NAME/binary, date, size, Accesses:, Title, Keywords, description); DOW
sends one by CompuServe B / Quick B / B Plus, XMODEM, Kermit or DC2/DC4
capture, from /PROTO: or the protocol menu, within the BBS's download
limits; UPL takes one, then its title, keywords and description.
The B engine: a TU garbled on the way is sent again on a NAK or silence
(both sides NAKed each other before), a lost ACK of the final TC is not
a failure, and Rest gives what was read past the protocol.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
GO FORUMS lists a forum for each group of message areas (and one for
those in none), each area a section, at most 18 a forum. The forum is in
command mode at Forum !, as TAPCIS needs: REA, SCA (and QUICK), BRO with
NEW/ALL/WAI/REV/THR and FROM:/TO:/SUB:/SEC:/DAYS:/STA:, POST with EDIT,
replies, OPT;TYP N for nonstop reading, MES, DES, NEW; message headers in
forum software 4's form (#:, Sb: with thread marks, Fm:/To: with User
IDs, * Reply: footers), and the entry and exit texts. TAPCIS's command
strings are in the test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
A listener with frontend = compuserve serves the CompuServe Information
Service on the BBS's users: Host Name, User ID (an account's number as a
CompuServe ID, or its name) and Password, ?LOG codes, ESC I terminal
identification, the banner and logoff text, and the ASCII service's menu
and article pages with GO, FIND, T/M/B/F/R/N/P, SET and ; chaining. CIM
clients are told ?LOG CAI until the HMI service is built.
internal/xfer/cisb.go is CompuServe B, Quick B and B Plus, the host's side
and the terminal's: ENQ start, + parameter negotiation, quoting, all four
check methods, a send window with ENQ resynchronization, downloads and
uploads. Tested against the spec's checksum and CRC values and over a
noisy loopback.
docs/cis holds the research and design behind it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
Contributors now assign the copyright in their contributions to D-Modem
(the D-Modem organization, its rights held by its owner on its behalf),
with a licence back to them, and an exclusive licence where an
assignment doesn't take effect.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
Each contribution comes with the suite's contributor agreement (the one
bbs, menu and brand already use): the contributor keeps the copyright
and licenses it to the D-Modem Authors under the repository's licence
and any other terms, commercial ones included. Each commit's
Signed-off-by line says they agree. The new workflow checks for that
line on every commit of a pull request, except pull requests from the
owner, the organization's members and bots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
internal/menuauth was a copy of the client: D-Modem/menu has it now as
the public package authd, beside the server, so the protocol is in one
place. cmd/bbs imports github.com/D-Modem/menu/authd; internal/menuauth
goes, its tests with the client in menu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRbjf74j8oq9R3PXhA
Rewrite the wiki's prose in the plain style of the rest of the D-Modem
docs: an opening sentence on every page saying what it covers, full
sentences, labelled table headers, British spelling (colour), one space
after full stops, and See also at the foot of every page. Page-title
headings are dropped, since the wiki and the site both show the title.
Home becomes a landing page: what bbs is, a Start here table by goal,
the features grouped by who they are for, and the list of every page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
docs/wiki/Configuration-Reference.md lists every section and key of
bbs.conf with its help, default, examples and whether it is live: the
configuration editor's catalog of bbs.conf.sample, written by
go generate ./internal/confedit (confedit.Reference). A test, and the
Pages build, fail when the committed page isn't the one the sample
makes. The sidebar and Configuration link it.
mkdocs.yml builds the wiki's pages into the site with brand's shared
theme (Zensical); page.html URLs keep the wiki's links (Configuration,
SSH#keys) working, as GitHub Pages serves page.html for /page. Home is
the home page. .github/workflows/pages.yml calls brand's site workflow:
a pull request builds it, main deploys it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
The README keeps a short summary, six feature lines, the quick start and
links into the wiki, whose home page already has the full feature list
and the page index. go3270 links (README, wiki Home, Building, TN3270)
point at D-Modem/go3270 and call it the suite's fork rather than
go3270-sec.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
The repositories moved from Neo-Desktop to the D-Modem GitHub
organisation: D-Modem-RE is now D-Modem/D-Modem, pico-serial is
D-Modem/hardware, modemmenu (PBX-Modem) is D-Modem/menu, bbs-sec is
D-Modem/bbs and go3270-sec is D-Modem/go3270. Update links, module
paths, submodule URLs and source-location strings to match. Copyright
notices still name Neo-Desktop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
- Comments that named something else now name their own function:
ircd member, imageboard srcPath and linker, forum when, redirect and
errNoArea, textui sheetDraw.first; a stray comment in rest.go gone.
- confui: changeLines uses diffLines instead of repeating it.
- nntp: accept_from names are looked up when the configuration loads
(start and reload), now said in the code and the wiki.
- Tests: tnClient.read grows its buffer for a command split at its end
(a full buffer read nothing for ever); freeAddr folded into freeTCP;
zipOf is a helper.
- go3270-sec 6c7224e: its comment fixes and gfxtest tidying.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Picks up go3270-sec ff000f5: TSO member names kept in IND$FILE
commands, a terminal that does not answer the Query sized by its model,
and IBM-DYNAMIC with no Usable Area 24x80.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- app: capital upper-cases the first letter, not its first byte, so an
error beginning "é" is not mangled.
- screens: readFile reads the whole file (one Read may stop short) and
still refuses one grown past MaxSize.
- script: data.set's limit check and write are done under one lock, so
sessions setting new names at once cannot pass the limit.
- store: the scan helpers return nil, not a half-filled value, with an
error (scanUser already did).
- The validate and edit-user "Lock" actions are capitalized like the
others; door's unused yn helper removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- Menu takes only an item's key (returned as the item has it), asking
again for any other without redrawing, as a 3270 does; Enter is still
"" (none chosen: Back would log off from the top menu). view.UI's
Menu doc says so.
- VT52: ED 1 (erase up to the cursor) was sent as ESC J, erasing below;
it is dropped now, as EL 1 is. EL 2 erases the whole line from its
start; ED 3 clears like ED 2.
- A sheet's key line leaves out 3270 PF-only keys instead of writing a
NUL for them.
- The full-screen editor cuts a body longer than its line limit.
- keyLabel's unreachable branch removed; setTranslator's comment notes
that Flush settles the old translator (it already did).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- Table showed only its note's first line, losing e.g. offline mail's
"By FTP" line; the rest (three at most) now go below it, the rows
moved down for them.
- Confirm put its Y/N field past the screen's edge for a long question;
the question now wraps and the field follows its last line.
- Form dropped the fields that did not fit, returning their presets as
if typed; it now pages them with PF7/PF8, keeping what was typed on
each page, and returns them all on Enter.
Tested end to end with s3270 through a script's table, confirm and form.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
needLogin took a POST's Referer only if it began with "/", but browsers
send the whole URL, so a guest always came back to the index. A
Referer from this host now gives its path and query, checked by safeBack
as the login checks it; any other host's still goes to the index.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- POST /api/v1/page that reaches no sysop is now 503 "unavailable" (the
page withdrawn), as the WebSocket's Page request answers, not 200 with
waiting false.
- The OpenAPI FileAreas schema lists can_download, which GET
/file-areas has sent all along.
- HTTP-API wiki notes the 503.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- ircd: a service's HELP banner goes through ircfmt.Unescape like its
other lines, so BBSServ's shows bold, not a literal $b.
- ircd: a PRIVMSG or NOTICE to your own nick with no other node of yours
comes back, as IRC servers do, instead of vanishing.
- imageboard: the JSON API's error names its status ("forbidden",
"internal server error"), not always "not found".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- nntp: a command line may be 512 octets with its CRLF (RFC 3977), but
the check left the CRLF out, letting 514 through.
- fido: echomail whose MSGID makes no valid Message-ID is logged when
dropped, not only counted as bad.
- fido: TossStats.Forwarded removed: nothing is routed, so it was never
set nor shown.
- fido: originPattern's comment describes it, not originAddr.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Past 10,000 sources the map was cut by deleting whatever map iteration
gave first, so flooding it from new addresses could clear an attacker's
count. Now sources whose last failure is past the throttle time go first,
then those whose last failure is oldest; a source's own list is capped too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
- door: telnetClient.Read returns at once for an empty buffer; a failed
answer to an option is returned by the next Read or Write rather than
reading on for ever.
- ssh: sshTerm.pump stops once closed when the channel reads nothing
without error, instead of spinning.
- ssh: makeHostKey removes the key file when Close fails, not only Write.
- fido: flock retries EINTR; Lock retries a failed lock file briefly.
- tn3270: negotiation and its 30s watchdog decide by one flag, so a
negotiation ending as time runs out keeps its connection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Handoff3270 promised the client's pending bytes to go3270 but gave only
what was still buffered: data decoded while negotiating (c.early) was
lost. It now goes first, its IACs doubled again for go3270's telnet.
A request of ours was remembered only as unanswered, not as DO or DONT,
so a client answering our DONT TTYPE with WILL turned the option on (and
was asked for its terminal type again). What each request wanted is now
kept, and an answer to the contrary leaves the option as asked (RFC
1143). A stale duplicate comment on CR NUL is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
A download was counted, against the user's day and ratio, as soon as any
of it was read, so a transfer cut short counted as a whole one. It now
counts once the transfer reaches the end (a cut one is logged as partial
and not counted), and a resumption (REST) of the file counted today is
not counted again and needs no downloads left, as the API's Range
requests. REP uploads must be BBSID.REP, as the refusal says.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
A restore copies the archive's database into a PostgreSQL or MySQL one,
which must be new; one with users was refused only after the whole
archive was unpacked, with Copy's bare message. It is now checked first
(Store.Empty), and the refusal says what to do: make a new database,
point bbs.conf at it, restore again; nothing has been changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
loadKey replaced a secret file of the wrong length with a new key, so one
with a newline added (an editor, a restore) silently changed every secure
tripcode and post password. Whitespace around the key is now let be; a
file that is no key is an error naming it, left as it is; and a new key
is made only where there is none (O_EXCL), its random bytes checked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
A download's and a QWK packet's names went into Content-Disposition in
quotes as they were, so a name with a quote, a backslash or a control
character broke the header. attachment (mime.FormatMediaType) quotes and
escapes it, percent-encoding (RFC 2231) what quoting cannot carry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
patchUser, patchArea and patchMe saved each change as they came to it,
so a request refused for a later field (a bad level, a bad echo tag, a
wrong old password) left the earlier ones made: a password or a lock
set by a request answered 400. Every change is now checked first (an
area's newsgroup and echo tag against the other areas too), patchMe
changes the password before saving the rest, and the store's errors are
no longer ignored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr