• TickIT doesn't use the Archive class

    From Rob Swindell@VERT to GitLab issue in main/sbbs on Sun Feb 26 11:39:27 2023
    reopen https://gitlab.synchro.net/main/sbbs/-/issues/524

    I try to setup a nodelist handler for amiganet, these come in lha format
    I have added the archiver and it works ok with the files from the library

    ![imagen](https://gitlab.synchro.net/main/sbbs/uploads/8f6f2659b773ef2ee4f413936f1a02c1/imagen.png)

    I test on tickit.cfg with both nodelist_handler and file_handler with same results:

    ```
    [AMYLIST]
    Dir=amn_amylist
    SourceAddress=39:943/1@amiganet
    ForceReplace=true
    Handler=tickit/nodelist_handler.js
    HandlerArg={"domain":"amiganet", "match":"AmyList.l*", "nlmatch":"AmyList.*"} ;Handler = tickit/file_handler.js
    ;HandlerArg = { "match": "AmyList.l*", "files": [{ "source": "Amylist.*", "destination": "/sbbs/fido/NODELIST.AMIGANET" }]}

    ```
    it seems that the part of code that tries to detect the archiver is not working for this case

    ```
    Object.keys(ctx.sbbsecho.packer).forEach(function(key) {
    var i;
    var sig = '';

    f.position = ctx.sbbsecho.packer[key].offset;
    for (i=0; i<ctx.sbbsecho.packer[key].sig.length; i+=2) {
    sig += format("%02X", f.readBin(1));
    if (f.eof)
    break;
    }
    if (sig === ctx.sbbsecho.packer[key].sig)
    unpack = ctx.sbbsecho.packer[key].unpack;
    });
    f.close();

    if (unpack == undefined) {
    log(LOG_DEBUG, "Unable to identify packer for '"+tic.file+"'");
    return false;
    }

    ```
    I attach a AmyList.l48 nodelist example that came from my boss.


    [AmyList.l48](/uploads/4f200dfa9dbe27939d5e68a697ba0a74/AmyList.l48)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Fernando Toledo@VERT to GitLab note in main/sbbs on Sat Feb 17 21:59:22 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/524#note_4867

    I just notice that using this version for LHA (lhasa) on debian:


    ```
    Lhasa v0.3.1 command line LHA tool - Copyright (C) 2011,2012 Simon Howard usage: lha [-]{lvtxe[q{num}][finv]}[w=<dir>] archive_file [file...]
    commands: options:
    l,v List / Verbose List f Force overwrite (no prompt)
    t Test file CRC in archive i Ignore directory path
    x,e Extract from archive n Perform dry run
    p Print to stdout from archive q{num} Quiet mode
    v Verbose
    w=<dir> Specify extract directory
    ```

    the unpack command line at echocfg must be: lha -ew=%s %f

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