• whislist: listfiles improvements headers and ARS

    From Fernando Toledo@VERT to GitLab issue in main/sbbs on Fri Jan 15 17:08:28 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/202

    I want to use filelist to generate a "News files" bulletin

    I think the addition of these two functionalities can be useful:

    1) Use -hdr with -new XX show the header of another directories that do not have newest files:

    ```
    Main Nets Files: 7 ------------------------------------------------------------------------------- Main Doors Kits Files: 0 ------------------------------------------------------------------------------- Main DOS Games Files: 26 ------------------------------------------------------------------------------- Main BBS Files: 41 ------------------------------------------------------------------------------- BIMPRO29.ZIP 13/01/21 BImodem Pro (PAMPA) V2.9 [1/1] A new full BImodem.com-comp
    BIMPRO31.ZIP 13/01/21 BImodem PRO (PAMPA) v3.1: A new full BImodem.com-compatibl
    BIMPRO33.ZIP 13/01/21 BImodem PRO (PAMPA) v3.3: A new full BImodem.com-compatibl
    BIMPRO35.ZIP 13/01/21 BImodem PRO (PAMPA) v3.5: A new full BImodem.com-compatibl
    BIMPRO36.ZIP 13/01/21 BImodem PRO (PAMPA) v3.6: A new full BImodem.com-compatibl
    BIMPRO40.ZIP 13/01/21 BImodem PRO (PAMPA) v4.0: A new full BImodem.com-compatibl
    llist129.zip 07/01/21 LiSTADO OFiCiAL DE BBS's DE LA REPUBLiCA ARGENTiNA. 27 May
    llist143.zip 07/01/21 24 Oct. 1998 143
    locol109.zip 07/01/21 24 Abr. 109 1996 El LoCo
    PAMPA35.ZIP 13/01/21 BImodem PRO (PAMPA) v3.5: A new full BImodem.com-compatibl
    PAMPA41A.ARJ 13/01/21 PAMPA v4.1a. (C) Ariel Lipzig A new BImodem-compatible pro

    Main Assembler Files: 152 ------------------------------------------------------------------------------- Main DOS Graficos Files: 160 ------------------------------------------------------------------------------- Main DOS Sonido Files: 7 ------------------------------------------------------------------------------- Main Sunrise DOORS Files: 70 ------------------------------------------------------------------------------- Main Fidonet Files: 9 ------------------------------------------------------------------------------- Fido_Stu.ff. 14/01/21 Fido_Stuff.zip

    Main Win Varios Files: 28 ------------------------------------------------------------------------------- Main WG Warez Files: 852 ------------------------------------------------------------------------------- Main Basurero de archivos Files: 146 -------------------------------------------------------------------------------

    ```

    I wish that those areas did not show them. Maybe add another opt line "show only headers for areas with news files"

    Should be:

    ```
    Main BBS Files: 41 ------------------------------------------------------------------------------- BIMPRO29.ZIP 13/01/21 BImodem Pro (PAMPA) V2.9 [1/1] A new full BImodem.com-comp
    BIMPRO31.ZIP 13/01/21 BImodem PRO (PAMPA) v3.1: A new full BImodem.com-compatibl
    BIMPRO33.ZIP 13/01/21 BImodem PRO (PAMPA) v3.3: A new full BImodem.com-compatibl
    BIMPRO35.ZIP 13/01/21 BImodem PRO (PAMPA) v3.5: A new full BImodem.com-compatibl
    BIMPRO36.ZIP 13/01/21 BImodem PRO (PAMPA) v3.6: A new full BImodem.com-compatibl
    BIMPRO40.ZIP 13/01/21 BImodem PRO (PAMPA) v4.0: A new full BImodem.com-compatibl
    llist129.zip 07/01/21 LiSTADO OFiCiAL DE BBS's DE LA REPUBLiCA ARGENTiNA. 27 May
    llist143.zip 07/01/21 24 Oct. 1998 143
    locol109.zip 07/01/21 24 Abr. 109 1996 El LoCo
    PAMPA35.ZIP 13/01/21 BImodem PRO (PAMPA) v3.5: A new full BImodem.com-compatibl
    PAMPA41A.ARJ 13/01/21 PAMPA v4.1a. (C) Ariel Lipzig A new BImodem-compatible pro

    Main Fidonet Files: 9 ------------------------------------------------------------------------------- Fido_Stu.ff. 14/01/21 Fido_Stuff.zip

    ```

    2) Set the ARS level access that run filelist, example:

    -ars "LEVEL 10"

    then, this show the areas that have permision for LEVEL 10 or less.

    This helps to avoid having to put a large list of "-not" included areas

    thanks!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jan 16 02:37:37 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/202#note_1300

    In Synchronet v3.19, there will be a JavaScript filelist utility script either in addition to or instead-of the old "filelist" utility. Enhancements such as this will be much easier to make to the JavaScript utility script.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From poindexter FORTRAN@VERT/REALITY to Rob Swindell on Sat Jan 16 17:34:00 2021
    Rob Swindell wrote to GitLab note in main/sbbs <=-

    https://gitlab.synchro.net/main/sbbs/-/issues/202#note_1300

    In Synchronet v3.19, there will be a JavaScript filelist utility script either in addition to or instead-of the old "filelist" utility. Enhancements such as this will be much easier to make to the JavaScript utility script.

    <snark>

    I'd rather see TEXT.DAT re-written in JSON. Or XML. Or EBCDIC. Can we put
    this to a vote? :)

    </snark>



    ... Dear Esteemed Colleagues (And Steve);
    --- MultiMail/DOS v0.52
    þ Synchronet þ realitycheckBBS -- http://realitycheckBBS.org
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Tue Jun 8 05:40:05 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/202#note_2016

    The filelist.js -hdr option already works as you have described here.

    The second request is not feasible (You can't use ARS to define a user). I think another potential solution would be to allow jsexec to "run as" a user number, then just specify the number with the security settings you want.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab issue in main/sbbs on Tue Jun 8 05:40:05 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/202

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab note in main/sbbs on Tue Jun 8 19:15:17 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/202#note_2017

    Yes, run as can be good feature You can run script with differents security context

    this only lists these libraries that user have access:
    ```
    jsexec -u ragnarok filelist.js
    jsexec -u 1 filelist.js
    ```
    Also, another approcach can be set the ARS for script ex:
    ```
    jsexec -ars "LEVEL 40" fielist.js
    ```
    This should show only libraries level 40 has access to.

    I don't know if it can be useful for other modules, but it can be useful for filelist.js

    Saludos!

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