https://gitlab.synchro.net/main/sbbs/-/commit/fd0e92d759739f96d2045d8c
Added Files:
exec/tests/webmail/client.js strings.js webmail/.gitignore webmail/root/css/base.css noscript.css style.css webmail/root/images/cp437-ibm-vga8.png webmail/root/index.xjs webmail/root/js/app.js attachments.js avatar.js body.js check.js dom.js folders.js format.js i18n.js icons.js layout.js linkify.js list.js login.js mail.js notice.js poll.js powered.js reader.js rpc.js search.js webmail/tests/timing.sh
Log Message:
Web mail client: sign-in and a read-only mailbox in the browser
The browser half: a shell page (webmail/root/index.xjs), one stylesheet
driven by seven color variables a sysop can override in css/custom.css,
and plain ES modules with no framework and no build step.
- Sign-in, and the frame: three panes with two draggable dividers on a
wide screen, one pane at a time with Back on a phone; light, dark or
the system's theme; notices; a "no connection" bar with retries for
requests that are safe to repeat.
- Folders with unread counts and a storage meter; the message list,
drawn from a small pool of rows however long the folder is; search in
one folder or all mail; new mail shown without a reload.
- The reader: header, plain text with links, HTML mail, attachments
with download and an image preview, the next message fetched ahead.
HTML mail is shown in a sandboxed frame with its own content policy:
no script, nothing remote until "Show images", no forms, no
navigation of the app. The message is parsed, stripped of <link>
elements and re-written before display, repeated until the result
settles. HTML mail keeps a light page in the dark theme unless it
declares dark support.
- Synchronet avatars for the account button and the sender, drawn on a
canvas from the CP437 font sheet; a "Powered by" line.
- Scripts and styles are served under a versioned path
(webmail/root/webctrl.ini rewrites it), so an upgrade never mixes old
and new modules. If the app cannot start, the page says so.
Nothing here can change mail yet: no delete, move, star or compose.
exec/tests/webmail/client.js pins, from the source text, the frame's
sandbox and policy, the request header and the absence of markup built
from strings. Everything else in the browser was checked by driving
headless Firefox against a scratch web server; no other browser, no
phone and no screen reader has been tried. webmail/tests/timing.sh
times the main requests against a live server.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>