• exec/load/822header.js src/sbbs3/mailsrvr.cpp

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Nov 21 14:40:27 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/5361ee31f401aa2f0d3a2c5d
    Modified Files:
    exec/load/822header.js src/sbbs3/mailsrvr.cpp
    Log Message:
    Mail: give locally sent mail a "To" address over POP3 and IMAP

    A message one local user sent another (e.g. from the Terminal Server) has
    no recipient network address, so the "To" header sent to a POP3 client
    was just the recipient's name, and the IMAP service sent the name with a "(#<usernum>)" comment. A mail client's Reply All then tried to send to
    the name as if it were an address (seen with Apple's iOS Mail).

    The Mail Server now builds the recipient's address with usermailaddr(),
    as it already did for other recipients without an address, and
    822header.js builds it the way it already builds a local sender's "From" address, e.g.:

    To: "Digital Man" <Digital.Man@vert.synchro.net>

    Messages that kept their original "To" header (received by SMTP, or with
    a recipient list) are unchanged, as are sub-board messages over IMAP.

    Fixes #972

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net