• postmessage.js - parameter seem to have to be in a specific order whic

    From Errol Casey@VERT to GitLab issue in main/sbbs on Monday, December 23, 2024 21:23:43
    open https://gitlab.synchro.net/main/sbbs/-/issues/850

    If you don't follow expected order, it will prompt for things that you have provided in
    the command line like "From User:"


    [sbbs@vmi1943160 notes]$ cat postmessage
    usage: postmsg.js [-option] [-option] [...] <sub-code>

    <sub-code> must be a valid sub-board (msgbase) internal code

    options:
    -i<filename> import text from filename rather than stdin
    -t<name> set 'to' user name
    -n<addr> set 'to' netmail address
    -u<number> set 'to' user number
    -f<name> set 'from' user name
    -e<number> set 'from' user number
    -s<subject> set 'subject'
    -d use default values (no prompt) for to, from, and subject

    Note: You may need to enclose multi-word options in quotes (e.g. "-fMy Name")

    jsexec postmsg.js -i/home/sbbs/ctrl/tl-intro.txt -tAll -e1 "-sToo Lazy BBS" LOCAL-NOTICES
    jsexec postmsg.js -tAll -e1 -i/home/sbbs/ctrl/tl-intro.txt "-sToo Lazy BBS" LOCAL-NOTICES
    jsexec postmsg.js -tAll "-sToo Lazy BBS" -e1 -i/home/sbbs/ctrl/tl-intro.txt LOCAL-NOTICES
    jsexec postmsg.js -tAll -fAmessyroom "-sToo Lazy BBS" -i/home/sbbs/ctrl/tl-intro.txt LOCAL-NOTICES

    This final command follows the arguments as listed in the order of the case statements.

    The help output does not list the arguments in the same order, as can be seen in my listed
    attempts.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Tuesday, December 24, 2024 02:27:16
    https://gitlab.synchro.net/main/sbbs/-/issues/850#note_6177

    No, the order of the parameters does not matter.

    None of the examples you provided include the `-f` option, so I would expect them *all* to prompt for the "From user".

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab issue in main/sbbs on Tuesday, December 24, 2024 02:58:42
    close https://gitlab.synchro.net/main/sbbs/-/issues/850

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Tuesday, December 24, 2024 02:58:42
    https://gitlab.synchro.net/main/sbbs/-/issues/850#note_6178

    Not an issue as we discussed on irc.

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