• Per-user choice to keep a local copy of e-mail forwarded to netmail

    From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sat Nov 21 12:20:42 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1379

    ## Summary

    Let each user choose whether e-mail forwarded to their netmail address is also kept in their local mailbox, when the sysop allows it.

    ## Today (v3.22)

    *Allow Forwarding to NetMail* under SCFG->Message Options is `Yes`, `No` or `Both` (added for #140 and #593). `Both` forwards a user's e-mail and also delivers a copy to their mailbox. It is one setting for the whole system: every user who forwards gets the same behavior.

    A user controls only two things:

    - whether their e-mail is forwarded (the *Forward Mail* toggle in the terminal's user settings, the forwarding switch in WebMail's Settings)
    - the netmail address it goes to

    WebMail tells the user whether a copy is kept, but they cannot change it. The terminal says nothing about it.

    ## Proposed

    A third state for the user's forwarding setting:

    - Off
    - Forward only (no local copy)
    - Forward and keep a local copy

    The sysop's setting says what users may pick:

    | Allow Forwarding to NetMail | User's choices |
    |---|---|
    | `No` | none (as today) |
    | `Yes` | forward only (as today) |
    | `Both` | forward only, or forward and keep a copy |

    Whether `Both` should mean "users choose" or "always keep a copy" for everyone, or whether that needs a fourth sysop value, is open. The default for a user who has not chosen should match what the system does today, so nothing changes on upgrade.

    ## What it touches

    - **User record:** a new per-user flag (forward-and-keep) beside the existing forward-to-netmail flag.
    - **Terminal:** the *Forward Mail* item in user settings gains the third state. - **WebMail:** the forwarding switch in Settings gains the choice, in place of the information-only line.
    - **Delivery:** every path that reads the system-wide setting today has to read the user's choice: the mail server (SMTP delivery), bulk mail, post-by-mail notification, SBBSecho netmail import, and QWK and REP packets.
    - **JavaScript:** the user's choice exposed on the `User` object, and the user-settings constants.
    - **Limits:** a kept copy is a local delivery, so *Maximum E-mail Messages Waiting* and the mailbox quota apply to it as they do under the system-wide `Both` (a full mailbox: forward only).
    - **Docs:** SCFG help for the option, wiki pages config:message_options, module:user_settings and module:webmail.

    ## Not in scope

    E-mail that a sender chooses to forward from the terminal's e-mail prompt is forwarded only, as it is under the system-wide `Both` today.

    *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)