• exec/msglist.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Friday, August 07, 2026 15:55:33
    https://gitlab.synchro.net/main/sbbs/-/commit/3f13efa6ab6446b4328b4969
    Modified Files:
    exec/msglist.js
    Log Message:
    msglist: reply to an unroutable netmail address as local e-mail (#1215)

    mail_reply() chose between bbs.netmail() and bbs.email() on the sender net
    type alone. When that address is one this system will not route as netmail
    - one of its own domains, as carried by mail submitted over authenticated
    SMTP - the netmail attempt fails with "Invalid NetMail address" followed by "Failed to send", and there is no way to answer the message.

    Fall back to the sender's user number, as the built-in mail reader has done since be05f55db5 (chest-4-dies, 2026-02-11). Sending such mail back out
    through our own SMTP server used to work by accident, until 4aa2274c97 (provide-5-player, 2026-01-22) stopped netmail to our own addresses.

    Replies to genuinely remote senders are unchanged: the fallback needs a
    sender extension, which a message from another system does not carry.

    This also answers messages already stored with the old sender net type.

    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)