WinCIM asks for forums and mail with ordinary page requests (CIS:FORUMS,
HOM:MAILHMI, as 24high/CompuServe-Emulator measured), so they are pages
now: the forum list, a forum's sections and libraries, a section's
messages newest first, each message as an article (it then counts as
read), a library's file list, the mailbox (unread marked *) and each
letter (marked read when read). Pages are made afresh on each request.
Sending mail, posting, downloads and CB in CIM need transactions not yet
recovered; the docs say so.
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
Co-authored-by: Claude <noreply@anthropic.com>
* listen handoff = yes: the caller's line itself from modemmenu
A raw unix listener with header = yes and handoff = yes takes the
caller's line with the header (SCM_RIGHTS), as modemmenu's item with
handoff = yes sends it: the session runs on that terminal, nothing
copied between modemmenu and the BBS. What modemmenu had read and not
used comes on the connection after the header, ahead of the terminal.
The connection then only marks the session's life: logging off closes
it (the line goes back to the menu, its flags as they came), and the
menu closing it (its time limit, the caller gone) hangs the session up.
A header without a line is an ordinary call.
Tests: four callers on handed-over lines at once, each on its own
terminal; logging off closes the connection; the connection closed
takes the terminal away.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRxseyEuLRFbFaBoX3
* handoff: a closed or hung-up line ends the call quietly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRxseyEuLRFbFaBoX3
* oscar test: let bob's arrival come again before Carol's
TestAIMToIRC failed on CI when alice saw a second arrival for bob
before Carol Ann's; the test now passes over repeats of bob's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRxseyEuLRFbFaBoX3
---------
Co-authored-by: Claude <noreply@anthropic.com>
A CIM client (AP in its ESC I answer) now gets the GUI service instead
of "?LOG CAI", following what 24high/CompuServe-Emulator recovered from
WinCIM 3.0.2:
- Secure Login (+ before the User ID): RA:/RB:/UR:/HR:, checked
against a key kept from the password (cis_keys, bound to the password
hash, kept only while a compuserve listener runs), "No." on failure
- the terminal-mode trade: ESC [ > 0 q, ESC [ > 3;3 p, the parameter
line's sum checked, ACK (NAK and again if wrong)
- xfer.BTransport: the B Plus Transport Layer, counters per direction,
1 KB blocks, messages as M packets and a final L
- HMI: session open, pages (menus as 0x27, articles as 0x28 and their
text in pieces), the rest of a menu, Find, the directory lookup, acks,
logoff; CIS:/HOM: names on the ASCII service's page tree
Forums, Mail and CB in CIM say to use a terminal for now.
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
Co-authored-by: Claude <noreply@anthropic.com>
GO CB asks a handle (not another member's name) and a channel; channel
n is the chat room cb-n, shared with the BBS's other chat callers. The
1982 /HELP's commands: /TUN, /MON, /UNM, /STA, /TIM, /UST (the 1986
table, with s for scrambled and Tlk), /WHO, /HAN, /SCR, /SMC, /XCL,
/UNS, /SQU, /JOB, /EXI, plus /TALK, /ROLL and /OFF. Lines show as
(Handle) text, or (ch,Handle) from a monitored channel. Chat events
carry the sender's handle (bbs.Node.SetHandle) beside their name, so
other front ends still show the name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
GO MAIL enters CompuServe Mail: menu, prompt and command (Mail!) modes,
with the Options and Mode menus and the permanent-settings question that
TAPCIS's PARAMS.SCR answers, kept as cis-mail* user settings. READ with
Action! after each message, SCAN, COMPOSE, UPLOAD (TAPCIS's
UPL/PRO:B/TYP:ASCII), DOWNLOAD by any protocol, DELETE, ADDRESS (NAME and
a session address book), SET. Addresses take CompuServe's forms: names,
User IDs, 'Name >NET:addr', INTERNET:ppn@compuserve.com for a member,
FidoNet netmail; other networks are refused. /GO:MAIL at the User ID
enters it. The library download's transfer is split out to share.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM
IRC forgets what is said; now every private message is kept, however it
was sent (the BBS's chat, IRC, AIM, ICQ), in a new chats table. One sent
to a user who is not on is kept for them and given them on their next
login: on IRC as a PRIVMSG with its time (301 tells the sender), on AIM
as an IM once the client is ready, on ICQ as its offline messages
(15/03 0x41), on a terminal at its next prompt. /history in chat and
BBSServ HISTORY read a conversation back. /msg in chat takes a user's
name as well as a node's number.
Each user has one friends list (friends: user, friend, group, alias),
the same on every front end: /friends, /friend and /unfriend in chat,
BBSServ FRIENDS on IRC, and the AIM/ICQ buddy list. A buddy must be a
BBS user (others are refused, 13/0E 0x0A); OSCAR's item ids are kept
apart in oscar_buddies, so the list itself stays protocol-neutral for
other front ends. A friend added elsewhere comes to a connected AIM
client at once (13/08, in its group or "Friends").
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTAJGnEAiwGZm9ygpG
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
[oscar] serves AIM and ICQ clients on port 5190, as a front end on the
same chat core as the IRC server: buddies are BBS users online by any
route, an IM is a private message (a PRIVMSG to an IRC user), and a chat
room is a BBS room, an IRC channel.
- FLAP, SNACs and TLVs; logins by the signon frame (roasted passwords:
AIM 1-3, ICQ, Java AIM) and by BUCP (MD5, weak and strong digests); the
BOS and the services' connections by cookie, all on the one port
- BOS: rate classes, versions, self info, idle; locate (profiles, away
messages, capabilities); the client-side buddy list and the server-
stored one (feedbag/SSI, kept in a new feedbag table); permit/deny
lists and modes, ICQ invisibility; IMs on channels 1, 2 (rendezvous
passed between AIM clients, chat invitations as lines to others) and 4,
typing notices, host acks
- chat navigation and chat rooms (exchanges 4 and 5) as BBS rooms
- ICQ: numbers are uin_base plus the account's id; family 0x15's offline
messages (none), short and full info, searches by number and name
- a connection beginning with P3's sync byte goes to Server.P3, for an
AOL front end on the same port
BUCP digests can't be checked against bcrypt, so while [oscar] is set up
each account keeps a fixed auth key and its two digests (oscar_keys),
made when the password is set or checked in the clear and bound to the
password hash. The chat core gains WatchPresence (users coming and
going) and Throttle; bbs gains AuthenticateBy for digest logins.
docs/wiki/AIM-and-ICQ.md describes it.
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTAJGnEAiwGZm9ygpG
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
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
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 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
- 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
A client on a loopback address had no source for throttling, so its
failed logins were never counted: endless password guessing from this
machine. Its address is everyone's (a modem server, a menu, a local
proxy), so throttling or banning it would shut every such caller out:
LocalSource counts the failures against the account guessed at, by
service, instead. Nothing is banned for them (bans are of addresses).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
selectRange (OVER, HDR) looked up a Message-ID without checking that its
area is a newsgroup, as selectArticle does, so OVER <id> answered for a
message in an area out of news, confirming it. Both now find articles by
Message-ID through byMessageID: a newsgroup's, visible to the session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Gopher has no login, but it listed and sent every file area's files,
those with a download requirement too. It now offers only areas anyone
may download from (the requirement a caller not logged in meets).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
A request with a Range header was checked only for access, not for the
day's downloads or the ratio, and was not counted, so Range: bytes=0-
fetched a whole file past the limits uncounted. A Range request is now
free only when it resumes the user's download of that file counted in
the last day (BBS.Resuming, remembered by Downloaded); any other is a
download like the rest, checked and counted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Every function and method, tests included, has a doc comment: what it
is or does, what it returns and anything a caller needs to know. Only
comments are added; gofmt split a few aligned blocks of one-line
functions once each had its own comment. The generated protobuf code
is left as protoc writes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Where the terminal has triple-plane symbol sets and takes the extended
Load PS that loads one plane (PCOMM with programmed symbols alone: 3 of
them, and 3 single-plane), a picture's pels are each any of 8 colors:
the picture error-diffused to the planes' colors, a cell of several
colors a symbol in a triple-plane set, its blue, red and green planes
loaded one by one (cleared with the first) and the cell shown neutral
(X'F7', which shows its planes added); a cell of one color and black a
symbol in a single-plane set in that color while there is room, then in
a triple-plane set in its color's planes. The picture is as large as
its cells fit both.
A terminal without the extended form loads its triple-plane sets whole
and uses them as single-plane ones, a color a cell, as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Between vector graphics and blocks: the picture cut into character
cells, each one of the 3270's 7 colors (the color that, with black,
comes nearest its pels) and a symbol of its pels, error-diffused over
the whole picture with each pel black or its cell's color. The symbols
are loaded into the terminal's single-plane sets (LCIDs 0xC2 on) before
the screen, 190 a set, so the picture is as large as its cells fit in
the sets there are (PCOMM: 2 with vector graphics on, 380 cells); a
blank cell needs none, cells alike share one. A row's runs of a set and
a color are each a Set Attribute of both (go3270's AttributeOnly
CharSet).
A picture's Set Attributes lasted the rest of the screen's write, so the
caption and body after a block picture took its last color: the
attributes are set back after a picture (the character set too after
symbols). colorTerminal read the Color reply's pair count from the
wrong byte, so PCOMM (a 3278 by its type) was not taken for color.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
An image board's pictures (a post's thumbnail, the image whole) are now
drawn on a 3270 instead of only said in words:
- vector graphics (PCOMM): bitmaps a pel a pixel, error-diffused to the
terminal's own palette (PCOMM's 16 colors, from the Graphic Color
reply go3270 now asks for), overpainted (PCOMM's exclusive or does not
combine blue), cropped and split over segments by go3270's
ImagePictures; drawn after the screen over cells left empty, since a
character over a picture clears it in its cell
- blocks (x3270, any color 3270 with graphic escape): ▀ ▄ ▌ ▐ █ in the
7 colors, a cell two pixels by two, each cell the color and block
nearest its pixels, a run of a color one Set Attribute
and in words on the rest, as before, under the picture where there is
one. Pictures on/off (M, PF11) on the profile, kept as the text
terminals' preference is; the profile's terminal line says how they are
drawn. tn3270_vector is on by default now that PCOMM draws them.
go3270-sec: GraphicColors, DitherBitmaps, ImagePictures, the Query List.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
Signed in on the BBS, Your profile's Sign-in code (C, PF10) gives a code
(ABCD-EFGH, 40 bits, no 0/O/1/I), good once for five minutes; a new one
ends the last. The forum's Sign In page takes the code alone; anywhere a
password is asked (web terminal, image boards, API, FTP), it serves once
for the password with the user's name.
Codes are kept in memory as their SHA-256, never logged; a wrong one is
a failed login (throttled, the hack log), a locked account's opens
nothing (BBS.authenticate: the same path as passwords). SSH keys are now
on the profile of accounts modemmenu made too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
[modemmenu] auth_socket: the accounts modemmenu logs in (external, no
password here) log in any other way (telnet, SSH, TN3270, the web forum
and terminal, the API, FTP, NNTP, IRC) with their modemmenu password:
BBS.Authenticate asks modemmenu's [authd] socket, and modemmenu its
backends (users file, LDAP, SQL, PAM) as at its own prompt. Nothing of
the password is kept here.
An account with a password of its own here is never asked of modemmenu.
create_users (yes): a user modemmenu knows and the BBS does not gets an
external account at their first login, a name the BBS takes and the
name_deny_file allows. A wrong password counts as any failed login;
modemmenu not answering is trouble, not counted against the caller.
Connections and modems has the keys.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
[general] user (and group): started as root, bbs serve reads the
configuration, binds every socket it listens on (the listeners, TCP and
unix; the HTTP API and metrics, FTP, NNTP, IRC, finger, gopher, binkp),
gives up root (setgroups to the user's groups, setgid, setuid) and
executes itself again, the same process (its PID, for systemd and
reload), the sockets handed down; each server's listen takes the one for
its address (internal/sockets). Nothing is written as root: database,
logs, host keys, backups and a unix socket without socket_group are the
user's.
Other commands as root give root up first, so the database stays the
user's (but check and config; backup restore puts things back as root
and gives them, but the configuration, to the user). System
configuration has Run as user and group.
TestRunAs (as root) serves a port under 1024 and a unix socket as
nobody, the same process through a reload.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
The SSH listeners' host keys go into every backup (key.NAME), whatever
[backup] files says, and come back with a restore like the rest (what is
there renamed aside): a BBS put back on another machine answers with the
keys its callers' clients know.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
bbs backup makes one archive (bbs-YYYYMMDD-HHMMSS.tar.gz) of bbs.conf,
the database and the files' directories, while callers are on: the
database as a SQLite file whatever its engine, taken whole at one moment
(SQLite's by VACUUM INTO, a server's in one read-only repeatable-read
transaction: store.Snapshot). It is written beside its final name and
renamed when whole; past [backup] keep the oldest go.
[backup] says where (beside an SQLite database by default), when (at =
HH:MM, daily, in serve), how many, and whether the files go too; it is
live at a reload. bbs backup list, and bbs backup restore ARCHIVE -yes
with the BBS stopped: each thing put where this system's configuration
says, what is there renamed aside (.before-restore-STAMP), a server's
database copied into a new empty one; an archive whose names climb out
is refused before anything changes.
The configuration screens' Maintenance has Back up now, the backups
made, and [backup]'s keys.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
The configuration screens are menus by what a sysop looks for: Board
(names, location, postal address, dial-in numbers, internet addresses,
what callers see, menus and prompts), System (database, log, file
locations, security, scheduled events, every section), Connections and
modems (modem lines, listeners, login limits, caller ID, GeoIP), Services
(telnet, TN3270, SSH, RLogin, finger, gopher, FTP, IRC, news, the web,
MRC, FidoNet, QWK networks, doors), Users and groups (accounts and
access levels) and Maintenance (disk space, what areas keep, old
messages taken out, the image boards' archive, backups). Running as
another user, PAM, LDAP and database and file backups are shown as not
available yet.
Nothing changes until F10 (or Save and exit): changed lines are marked
and counted; then the file is checked and written, the accounts' and
areas' changes made, and on a running BBS the live ones put in force.
F9 (or Quit without saving) leaves it all, after a yes.
view.Sheet is the full-screen page: drawn with the cursor keys on ANSI
terminals (the terminal now reads F1-F12), with fields and PF keys on a
3270, as numbered lines elsewhere. [general] gains postal_address,
phone and addresses, in the system info and as @POSTAL@, @PHONE@ and
@ADDRESSES@.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr