Commit Graph
181 Commits
Author SHA1 Message Date
Claude e2a275f7de Merge remote-tracking branch 'origin/main' into claude/project-thread-xv85ad 2026-11-09 06:01:07 +00:00
Claude 12570cb4d7 Add an ACME client: certificates for every TLS server, renewed
[acme] gets certificates from Let's Encrypt, ZeroSSL or any ACME CA and
renews them before they run out, in the manner of acme.sh, built on lego
(MIT). [acme NAME] adds more. HTTP-01 (its own port 80 listener or the
BBS's web server there), TLS-ALPN-01 (any TLS server of the BBS on 443)
and DNS-01 (15 providers built in, exec:PROGRAM, or acme.sh's own dnsapi
scripts through acmesh:dns_xx) are supported; renewal follows renew_days
and the CA's ARI; a hook runs after each new certificate.

internal/certs is where every TLS server now gets its certificate: a
file pair read again when it changes, or the ACME client's (cert_file =
acme or acme:NAME, and by default when a TLS server has no files and
[acme] is set). Gemini keeps its pinned certificate and Yahoo its
login.yahoo.com one unless told.

bbs acme list / renew, bbs check lists them, a Certificates page in the
configurator, the sample config, Configuration Reference and a new
Certificates wiki page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSjWGPJDHVw7cyWKvE
2026-11-09 06:01:07 +00:00
NeoandClaude 925d95571d AOL host: the client's own Read Mail, Old Mail and Sent Mail (#40)
The client's mail tool asks for its lists with m7 (new), m9 (old) and
m8 (sent), opens a mail with m3 (mip_preset_message_id, mip_read_mail)
and changes mail with m2 (mip_change_message_status: 7 Ignore, 2 Keep
As New, 4 Delete). All of this was read from the tool's code
(AOLMIP.AOL). The host answers each list with a MIP message holding one
message per mail (id, author, subject, date, an empty block), and a read
with the whole mail. The atom order within a list entry is a best guess
until a real 3.0 client tries it.

store gains MarkMailUnread for Keep As New.


Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V

Signed-off-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-11-08 21:46:13 -08:00
NeoandClaude bf9301d6be msn test: wait for the switchboard to close before Carol writes (#39)
TestIRC had alice send OUT on her switchboard and Carol write at once.
When Carol's message beat the server's handling of OUT, it went to the
old switchboard and no RNG came: a flake seen under load (menu's CI).
The test now waits for the server to close the connection first.


Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V

Signed-off-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-11-08 21:37:08 -08:00
Claude 17c61a0506 Merge the Yahoo! Messenger server (#38) onto main 2026-11-09 05:31:23 +00:00
Claude 513d422bb3 Merge remote-tracking branch 'origin/main' into claude/project-thread-6qlxev
# Conflicts:
#	internal/server/config.go
2026-11-09 05:27:40 +00:00
Claude 1536e00a97 gemini: ask the sysop before making a certificate
The BBS no longer makes a Gemini certificate by itself at startup.
bbs gemini cert asks for the host names (and addresses), organization
and years, shows what it will make and where, and makes it only on a
yes. It will not replace a certificate without -force, and keeps the
old one as .old. Without one, bbs serve stops and says to run it, and
bbs check says there is none yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSz48BzvGbSP2U45F8
2026-11-09 05:25:40 +00:00
Neo b03837b897 Merge pull request #35 from D-Modem/claude/project-thread-zw6c9g
Add MSN Classic: The Microsoft Network for the Windows 95 client
2026-11-08 21:24:39 -08:00
Claude 0342ad6414 Add a Yahoo! Messenger server (YMSG 9 to 16)
Yahoo! Messenger clients sign in with BBS names and passwords on port
5050. The buddy list is the friends list and the ignore list the shared
blocked list; IMs are private messages to and from every route, kept for
one away and delivered at sign-in; Yahoo chat rooms are the BBS's chat
rooms and conferences are rooms of their own.

- internal/ymsg: the pager (VERIFY, AUTH/AUTHRESP, LIST and LIST_15,
  LOGON/LOGOFF/ISAWAY/ISBACK/STATUS_15 presence, MESSAGE, typing,
  ADDBUDDY/REMBUDDY/GROUPRENAME/CHGRP_15, IGNORECONTACT, chat rooms,
  conferences) and the web half (capacity, pwtoken_get/pwtoken_login for
  the YMSG 16 login over HTTPS with TLS 1.0 for XP, the room list)
- store: ymsg_keys (the challenge login's two digests, kept like AIM's
  and MSN's), MD5Crypt and Yahoo's base 64
- bbs: PublicRooms, for the room browser
- [ymsg] config section, docs/wiki/Yahoo-Messenger.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRfVskEUYFs9gMFCLD
2026-11-09 05:21:26 +00:00
Claude 68b8892efb email: read the test log under its lock
TestDNSBL read the site's log buffer while the SMTP server's goroutine
wrote to it, which the race detector caught in CI.  The log is now the
synchronised writer itself, with a String that takes the same lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSzB4EzF1cUBt1ccvB
2026-11-09 05:19:23 +00:00
NeoandClaude 95558dc200 AOL host: chat rooms and message boards (#36)
LP (List Rooms) and the keywords Rooms and Room name go into any BBS
chat room. The keyword Boards lists the message areas; a board lists its
topics, a topic its posts, and a post window (de_ez_send_form, token Zp)
starts a topic or replies. All are host windows whose buttons send
keywords.


Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-08 21:19:09 -08:00
Claude 8086ae7690 Add a Gemini server: gopher's capsule and finger's users over TLS
[gemini] serves gemini:// on port 1965: the home page, About this
system, Who's online, a user lookup (/users asks for a name; /~name)
with finger's answer, and the message and file areas the sysop opens,
as gopher shows them. Message lines are escaped so they cannot become
links, headings or preformatting; files go as they are, typed by name.

With no cert_file and key_file, a self-signed certificate for hostname
is made beside the database at the first start and kept, since Gemini
clients trust on first use; bbs check shows its fingerprint.

Gopher's About, Who, Area and OpenFiles and finger's User are exported
so Gemini shows the same content under the same rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSz48BzvGbSP2U45F8
2026-11-09 05:13:55 +00:00
Claude 2c9dedb4b2 MSN Classic: the 1996 client's NTLM sign-in
MSN 1.3 (Windows 95 OSR2) signs in with NTLM on LOGSRV: a NEGOTIATE
answered with a CHALLENGE, then an AUTHENTICATE whose NTLMv1 response
(the LM one: the client leaves the NT one empty) is checked against the
account's kept hashes, throttled and logged as a password is.

The store keeps each account's LM and NT hashes (ntlm_keys) as it keeps
CompuServe's key: made whenever the password is seen in the clear, bound
to the password hash, and only while MSN Classic is served.

The context an accepted sign-in leaves seals the account methods as the
client expects: the Password dialog's change (0x12), the billing pages'
record (0x13) and the payment commit (0x14), RC4 under the 40-bit seal
key with a CRC-32 and sequence-numbered token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSzB4EzF1cUBt1ccvB
2026-11-09 05:12:52 +00:00
Claude 01bff0e998 MSN Classic: Find, and file downloads
A Files folder, in MSN Central and Categories, lists the file areas the
caller may download from, each file a Download-and-Run node.  Opening
one has the client's File Transfer Manager ask FTM for it: the file
comes on HrStartDownload in blocks of at most 16K, each closing its own
message, then a bare end of request.  Downloads count against the daily
limit and ratio.

FindSvc answers Find > The Microsoft Network: the dialog's query
language (fields, contains, = <> in, AND/OR/NOT, and whole-word terms
with % and _) is parsed and run over the directory's nodes, and the ids
go back in the two blocks the dialog waits for.  Their rows come from
DIRSRV with the list's types and always a date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSzB4EzF1cUBt1ccvB
2026-11-09 05:01:19 +00:00
Claude 8b5527ffa5 A saved address book for each user, shared by CompuServe and MSN
The store keeps a user's address book (address_book).  CompuServe
Mail's Address Book is now it, kept between sessions rather than lost at
log off.  MSN's address book serves it alongside the members, so a saved
name typed into Exchange's To: finds its address on any PC, and an
internet address mailed from Exchange is added to it.  Exchange's own
Personal Address Book stays on the caller's PC: the client never tells
the server what it adds there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSzB4EzF1cUBt1ccvB
2026-11-09 03:38:54 +00:00
Claude dbadd78a02 Merge remote-tracking branch 'origin/main' into claude/project-thread-zw6c9g 2026-11-09 03:14:29 +00:00
Claude 63ea517a39 MSN Classic: e-mail, the address book and chat
Exchange's MSN transport (MOSRXP) carries the caller's BBS mail: the
Inbox's headers, a message at a time or all at once, mail sent as BBS
mail (with a Postmaster note for recipients it couldn't reach), and
deletes into the trash.  Its address book (MOSABP) is the BBS's members,
for the member list, To: lookups and Member Properties.

A Chat folder, in MSN Central and Categories, lists the chat rooms.
CONFLOC finds one and CONFSRV joins it: the roster, then each line,
arrival and departure as events on the join call, with the sender's own
lines echoed as the chat window expects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSzB4EzF1cUBt1ccvB
2026-11-09 03:14:29 +00:00
Claude 2c9fbd0b9a Add MSN Classic: The Microsoft Network for the Windows 95 client
internal/marvel serves the MSN client of 1995 to 1998 over its own
protocol (Marvel), by modem (frontend = marvel on a telnet or raw
listener) or over TCP ([marvel], port 569):

- the serial link (byte stuffing, CRC-32, Go-Back-N with a 16-packet
  window and retransmission) and the TCP "straight" records
- pipes, MPC host blocks and tagged parameters, property records
- LOGSRV: sign-in with BBS accounts (as a node), password change, the
  billing pages' name and address
- DIRSRV: MSN Central, Categories (a folder per area group), MSN Today
  (the boards with the newest posts), Go words, icons drawn here
- the BBS service: each readable message area is an MSN bulletin board,
  its messages listed with their reply threading, opened as articles,
  posted and replied to from the Compose window (plain, RTF or
  compressed RTF, kept as plain text) and deleted by their author

Written from the marvel-msn project's protocol notes and wire captures;
none of its code is used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSzB4EzF1cUBt1ccvB
2026-11-09 02:54:49 +00:00
Claude 58576f715c irclink: take ircu's message tags; live-tested against ircu 2.10.12.19
ircu sends @time= tags on server lines; they are dropped before a P10
line is parsed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUWrohwtnaPDvybZ5h
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-09 02:51:43 +00:00
Claude 75e7a341a2 irclink: link with ircu networks by P10
The hub keeps the network by TS6's names, so a P10 link is a
translation at its edge: numerics mapped both ways, its lines taken as
TS6's and ours sent as P10's. Lines between two P10 links go as they
came. Its burst is taken before ours goes (after its END_OF_BURST), so a
BBS user whose nick it has is renamed Nick|Tag first.

[irclink] numeric sets the BBS's P10 numeric; [ircpeer] protocol = p10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUWrohwtnaPDvybZ5h
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-09 02:45:16 +00:00
Claude 22b5d482da Merge main into the TS6 hub branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUWrohwtnaPDvybZ5h
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-09 02:21:27 +00:00
Claude e90c644808 IRC server linking: the BBS as a TS6 hub on an IRC network
[irclink] and [ircpeer NAME] make the BBS a server on an IRC network,
speaking TS6 (Solanum, charybdis, ircd-ratbox; ircd-hybrid 8 with
protocol = hybrid). It is a hub: it takes any number of links, in and
out, keeps the network's map, routes between them, and tells the others
of a netsplit.

Every BBS user online is a user on the network, whom anyone there can
/msg and /whois; the rooms beginning irc- are its channels. A nick that
is taken when a BBS user comes on, or when a link comes up, is the BBS
user's as Nick|Tag (cut to the network's NICKLEN, numbered if taken);
collisions between other servers' users follow the TS6 rules.

The chat core takes several relays (MRC and the IRC link together),
relays that list members elsewhere and reach people by name; the BBS's
IRC server shows the network's users in NAMES, WHO, WHOIS and ISON and
messages them, and /msg NICK in the chat does too.

Tested against Solanum (main) and ircd-hybrid 8.2.43 (TestLive).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUWrohwtnaPDvybZ5h
2026-11-09 02:03:25 +00:00
Neo 03def95da3 Merge pull request #32 from D-Modem/claude/project-thread-2u91ij
AOL host: keywords and mail
2026-11-08 17:37:13 -08:00
Claude 3d8ba09de2 AOL host: keywords and mail
Kk from the Keyword window or a host button goes to Help, Chat, Mail or
Who. m4 (MIP) from Write Mail is sent as BBS mail; the mailbox and each
mail are host windows whose buttons send keywords to read and delete.
The Welcome window counts new mail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-09 01:33:31 +00:00
Claude a3686b39cd Merge main into e-mail (beside time sync)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUSPBZTX8wShmaLrrg
2026-11-09 01:29:56 +00:00
Neo 16e6c9859c Merge pull request #31 from D-Modem/claude/project-thread-2u91ij
AOL host: People Connection chat and Instant Messages
2026-11-08 17:26:44 -08:00
Claude dc7e74eccd Merge main into e-mail (the AOL host beside the mail sections) 2026-11-09 01:22:43 +00:00
Claude 4c2b7de14e Merge main into time sync (beside the AOL host)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUSPBZTX8wShmaLrrg
2026-11-09 01:22:07 +00:00
NeoandClaude 988e4f85e5 CompuServe: GO DEFAULT and permanent settings, as TAPCIS's ALT-P walks them (#30)
GO DEFAULT (TERMINAL, PROFILE's first choice) is CompuServe's terminal
settings and service options: TERMINAL SETTINGS/SERVICE OPTIONS, then
PERMANENT SETTINGS' Logon/Service, Display, Terminal and Transfer
groups, each setting's screen, and CHANGE PERMANENT SETTINGS Confirm/
Cancel on the way out, laid out as TAPCIS 5.4's PARAMS.SCR transcript.
The settings are kept as cis-* prefs (bbs.RegisterPref lets a front end
add its own).

PAGED, BRIEF, WIDTH and LINES take effect at each logon (not with
;TTY); Mail waiting can go straight to Mail; the online editor sets
Mail's numbering; the protocol preference skips the protocol menu. The
rest are kept and shown.

TestCompuServeDefault replays PARAMS.SCR's sends and waits.


Claude-Session: https://claude.ai/code/session_01B82eRRPWCkk1Ro91AuzXFM

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-08 17:19:09 -08:00
Claude 74d30ea1b3 AOL host: People Connection chat and Instant Messages
Chat: CJ (People Connection) takes the client into the BBS's main room,
opened in the client's own room window (32-117; 4.0's 43-22783) with
the people there.  The room's lines come to it as AB (name, text), its
comings and goings as CA and CB, by slots the window numbers; Aa is a
line said (/me an action); CL leaves.  The same room as callers on every
other route.

IMs: iS (4.0: is) is a BBS private message to a user, wherever they
are on, kept for one away and the sender told; a private message to the
client opens its own IM window (32-223; 4.0's 32-6736), one for each
partner, the sender's own lines in it too.  iO says whether someone is
on.  Kept messages are given at sign-on.  Screen names are compared
without their spaces.

p3.Link.NoCRC tells 4.0 (it sends "**" for CRCs) from 3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-09 01:18:08 +00:00
Claude e10e4261e3 Merge main into e-mail (MSN beside the mail sections)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUSPBZTX8wShmaLrrg
2026-11-09 01:10:22 +00:00
Claude 877ca82e1d Merge main into time sync (MSN section beside ntp/nts/ptp)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUSPBZTX8wShmaLrrg
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-09 01:07:29 +00:00
Claude 197971e829 Merge main into the AOL host branch (beside MSN Messenger)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-09 01:06:09 +00:00
Neo 54de3abc17 Merge pull request #27 from D-Modem/claude/project-thread-rldvw3
Add an MSN Messenger server (MSN 1.0–4.7) and a shared blocked list
2026-11-08 17:02:39 -08:00
Claude e75f4ea03d AOL host: AOL clients sign on with BBS accounts
internal/aol serves AOL's own clients over P3: each token the client
sends is handled, and the host answers with atom streams compiled from
FDO91 source.

- Dd, the Welcome form's screen name and password (its two de_data),
  is a BBS login (Authenticate, throttled and logged as any); the client
  becomes a node, is taken online (async_online, its main window 32-296)
  and shown the BBS's Welcome window.  A failed one gets an alert and
  async_force_off; "New User" is told to join by telnet or the web.
- pE (Sign Off) is answered with XS, the host's sign-off.
- Other tokens are answered with uni_wait_off, so the client doesn't
  wait on them, and are logged; before sign-on they're ignored.
- Streams go as aT in one packet, or at pieces with one 4-byte id when
  long; a stream the client spreads over packets (4.0) is put together.

[aol] turns it on, at :5190 by default.  When [oscar] listens there too
the two share the port: OSCAR hands over connections that begin as P3.

Tested with a scripted client (sign-on, refusals, sign-off, long
streams both ways) and through OSCAR's port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-09 01:00:22 +00:00
Claude abdb146b4b P3 for an AOL front end: packets and the host's end of a link
internal/aol/p3 is P3, the link layer under the AOL 3.0/4.0 client:

- Packets: Append writes them (length, CRC-16/ARC), Reader reads them,
  passing over what isn't P3, telling a bad CRC or length apart so it can
  be NAKed, and taking AOL 4.0's "**" in place of a CRC.
- Link, started by Serve on a connection: waits for the client's INIT and
  acknowledges it (byte for byte as hosts that serve live clients do),
  then DATA in order in and out, tx/rx 0x10-0x7F round the ring, a window
  of 16, an ACK every 8 DATA or 200ms after a lone one unless a packet of
  ours carries it, a NAK once for each gap or bad CRC, go-back-N resends
  on NAK, heartbeats after 12 seconds unacknowledged and the link down
  after 10, a new INIT starting the link over.
- ParseInit reads what the client says of itself; Sniff tells a P3
  client's first packet; Token splits a DATA's token from its data.

Tested against a client scripted over a pipe (windows, NAKs, resends,
heartbeats, wrapping round the sequence numbers), under -race.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRm1WrfJdB863kw36V
2026-11-08 20:46:37 +00:00
Claude fb3e80c561 Add an MSN Messenger server (MSNP2-7) and a shared blocked list
MSN Messenger 1.0 to 4.7 and Windows Messenger 4.x sign in with BBS
names and passwords on port 1863. The contact list is the friends list,
the block list a new blocked list shared by every route (chat's /block
and /unblock, MSN's Block); private messages to and from IRC, AIM and
terminal users pass through switchboards, and kept messages are rung in
at sign-in.

- internal/msn: notification server and switchboards on one port
- store: msn_keys (MD5 digests kept like AIM's) and blocks tables
- bbs: blocks refused in TellUser and Message; /block, /unblock
- oscar: IMs to a user who blocks the sender are refused
- [msn] config section, docs/wiki/MSN-Messenger.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTgFq9vbzTWgK3XYQL
2026-11-08 20:40:33 +00:00
Claude 06e5b6b75a Merge main into the FDO91 branch 2026-11-08 20:35:20 +00:00
Neo aa2453bef3 Merge pull request #19 from D-Modem/claude/project-thread-p2z3e6
Kept private chats and one friends list, for every front end
2026-11-08 12:15:12 -08:00
Claude 6c3b5ee2ca Merge main into kept chats and friends (CompuServe handles, cis_keys)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTgFq9vbzTWgK3XYQL
2026-11-08 20:11:22 +00:00
NeoandClaude 0ab1fc735d CompuServe: forums, library lists and Mail to read in CIM (#26)
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>
2026-11-08 12:02:04 -08:00
Claude 17cd941f1a E-mail: DNS blocklists for mail from the internet ([mx] dnsbl)
The sending address is looked up in each list at once at the first MAIL
FROM; a listed sender is refused (554 5.7.1, with the list's TXT reason)
and logged.  A list that does not answer, or refuses the query (Spamhaus's
127.255.255.x through public resolvers, logged), refuses no one.  Local
and private addresses, and logged-in submission, are never looked up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVPRbt1YgtG7eQJZxD
2026-11-08 19:57:20 +00:00
NeoandClaude Opus 5.5 434a26e00b listen handoff = yes: the caller's line itself from modemmenu (#25)
* 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>
2026-11-08 09:07:38 -08:00
Claude 831e06bd0e Time: follow NTP, NTS and PTP servers, and serve all three
- internal/timesync: a clock that follows time servers (the median of
  their offsets) and can set the system clock; an NTP server with NTS;
  an NTS-KE server; a PTP grandmaster (multicast, and unicast
  negotiation) and a PTP client; kernel or network-card timestamps.
- [time], [ntp], [nts] and [ptp] sections, the UDP ports bound as root
  and handed down, and bbs time to ask servers once.
- Go 1.26 (facebook/time, the protocols' packets, needs it).
- Tested against chrony 4.5 (NTP and NTS, both ways) and linuxptp 4.0
  (multicast and unicast, both ways).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUxvTP6EhwNZTADjqy
2026-11-08 15:09:57 +00:00
Claude 0c5cc56c2f Time: NTP, NTS and PTP (work in progress) 2026-11-08 14:56:57 +00:00
Claude f3a0ee05d9 Merge main 2026-11-08 13:17:45 +00:00
Claude fcb5cabd82 E-mail: tests with Python's mail clients, docs and the sample configuration
The E-mail wiki page (addresses, folders, a smarthost or direct delivery,
DNS, the MX and LMTP), the mail sections in bbs.conf.sample, SMTP's 530
for mail before a login, and the TODO section done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVPRbt1YgtG7eQJZxD
2026-11-08 13:17:45 +00:00
Claude 1f018afa90 E-mail: POP3, IMAP, SMTP submission, inbound SMTP and LMTP, and a queue out
wip: servers, delivery and config; tests to follow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVPRbt1YgtG7eQJZxD
2026-11-08 13:08:26 +00:00
NeoandClaude 237ea990a5 CompuServe: CIM's way in (Secure Login, B+ Transport Layer, HMI pages) (#22)
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>
2026-11-08 05:03:36 -08:00
Claude 8303c0566b Mail kept once, with each user's entries and virtual folders
The mail table keeps a message once; mailbox gives its recipient and
sender entries of their own (read, starred, trash), and mail_uids its
places in the Inbox, Sent, Drafts, Starred, Unread, All Mail and Trash
folders, numbered so that numbers only grow in a folder (IMAP's UIDs).
An older database's mail goes in its recipients' inboxes. Deleting mail
now puts it in the trash. mail_queue holds mail for addresses elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVPRbt1YgtG7eQJZxD
2026-11-08 12:55:03 +00:00