• exec/tests/mailbox/mailsi

    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/ac66ab96d2ecfe7831e10e43
    Added Files:
    exec/tests/mailbox/mailsig_terminal.js
    Modified Files:
    docs/v322_new.md exec/load/mailsig.js user_info_prompts.js exec/user_personal.js src/sbbs3/writemsg.cpp
    Log Message:
    Terminal: edit and use the e-mail signature

    Add a "Mail Signature" item to the terminal's user settings and use the
    mail signature when e-mail is written from the terminal.

    MailSig gains to_terminal(), from_terminal() and lossy(): the mail
    signature file is UTF-8, a CP437 terminal sees and edits it converted. change_mail_signature() offers: edit the mail signature, no signature
    on mail, or use the general signature. A signature CP437 cannot show is
    warned about before editing, and text left unchanged is never written
    back, so viewing it on a CP437 terminal cannot damage it. The mail
    signature is plain text: color and control codes typed in the editor
    are removed (from_editor()) and the user is told. Each choice confirms
    what it did.

    writemsg.cpp: for e-mail, user/####.mail.sig replaces the general
    signature (a zero-length file means none); its UTF-8 lines are written
    as they are to a UTF-8 message, else converted to CP437 (read into a
    buffer that holds the longest line the signature can have). Sub-board and general signatures are unchanged, as is the Include Signatures in
    E-mail check.

    Tested: the four MailSig functions with a jsexec test (exec/tests/mailbox/mailsig_terminal.js), and the whole mailbox
    directory passes. Only parsed: change_mail_signature() and
    user_personal.js (they need a terminal). Only compiled: writemsg.cpp,
    with GCC only.

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