• exec/tests/webmail/api.js

    From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Fri Nov 20 15:25:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/1026573c9a66068d1334dff7
    Modified Files:
    exec/tests/webmail/api.js
    Log Message:
    tests/webmail/api.js: forge a session key that really differs

    The "forged cookie values" case built its forged key by replacing the
    first character of a real session key with "f". The key is random hex,
    so one time in sixteen it already began with "f": the "forged" cookie
    was then the valid one, the server rightly accepted it, and the test
    failed with "forged values: not signed in".

    Use "e" when the key begins with "f", and assert that the forged key
    differs from the real one.

    The test now passed 48 runs in a row; before, it failed about one run
    in sixteen.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Sat Nov 21 11:03:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ec5d3771f97ed0b91584eb4f
    Modified Files:
    exec/tests/webmail/api.js api_drafts.js send.inc send.js webmail/lib/api.js webmail/lib/locale/en_us.ini webmail/lib/send.js webmail/root/css/style.css webmail/root/js/folders.js
    Log Message:
    WebMail: Max Messages Waiting on send and beside the Inbox

    Sending: a message with a local recipient whose mailbox takes no more
    mail (User.mailbox_full(): more than Max Messages Waiting messages
    waiting, no W exemption) is refused whole before anything is stored,
    with a text of its own that names the recipient, the way one recipient
    the sender may not write to already refuses a send. Bulk mail at the
    terminal skips a full recipient and mails the rest; the difference is
    intended.

    Folder list: folder.list returns inbox_limit { count, limit, level }
    (null with no limit or for a user with the W exemption). The count is User.stats.mail_waiting, the number the mail server compares with the
    limit: every undeleted message to the user in the mail base, Spam
    included, which can be more than the Inbox folder shows. The client
    shows nothing below 80% of the limit; from there a line under the
    Inbox ("Inbox: 85 of 100 messages"); over the limit the same line in
    the warning color with what to do (delete or file some messages, Spam
    counts too).

    Tested by script (exec/tests/webmail, with stand-ins for the user and
    the system): a full local recipient refuses the send with nothing
    saved and names the recipient; only local recipients are asked about;
    the text reaches the API result; inbox_limit under, near, at and over
    the limit, with no limit, with the W exemption and with the system's
    own limit. The line in the folder pane was not seen in a browser.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>