• exec/sendmsg.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Sep 9 10:02:57 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/17b42ea2d1a0d1bf97f61092
    Modified Files:
    exec/sendmsg.js
    Log Message:
    Use sysop name instead of user.email if user.number == 0 (run from JSexec)

    The reported issue didnt mention JSexec, but I assume that's what was meant
    by "from the command line". (?)

    I honestly forgot this script even existed. It's using the old deprecated
    SMTP SOML command to send a telegram to a user. There are much better ways
    to do that for the local system (e.g. calling system.put_telegram), but I suspect this script existed since before the JS object model had support
    for sending user telegrams.

    Anyway, this was a simple change to fix issue #623, but really this
    script should probably be rewritten or removed from the repo (we use
    MSP for sending inter-BBS instant messages these days instead of SMTP/SOML).

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