• docs/v322_new.md exec/spamlearn.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Jul 2 00:55:42 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/21c1bbd054820f80082da087
    Modified Files:
    docs/v322_new.md exec/spamlearn.js
    Log Message:
    spamlearn.js: add "block" option for honeypot/spam-trap addresses

    With "block", after learning the message as spam, filter the sender's IP
    via system.filter_ip() (honoring spamblock_exempt.cfg and de-duplicating,
    like the built-in spam-bait), then the message is consumed. This lets a bait/honeypot address both TRAIN Bayes and block the sender -- which a ctrl/spambait.cfg entry cannot, because a bait recipient short-circuits at
    RCPT before any mail processor runs. Point such a section (listed before
    the scanning [SPAMC] section) at the addresses moved out of spambait.cfg.

    The block duration is passed before the filename in the filter_ip() call
    so it works on engines with or without the js_filter_ip() arg-order fix.

    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net