• FreqIT magic question

    From acn@1:103/705 to All on Thu Aug 5 16:11:28 2021
    Hi,

    I've had a look at FreqIT, so that other systems can request files from my BBS via BinkP.

    As the wiki page states, it is possible to define a "MAGIC" eg. for being able to request the latest nodelist using a wildcard as the 'real' filename.
    So eg. a magic called "NODELIST" can be set to "NODELIST.*" in a file area.

    But if I eg. have a file area where not only the latest nodelist is stored but also older ones, how does the magic react to this?
    If I've undestood the JavaScript source freqit_common.js in 3.18b correctly, I would get *all* nodelist files, is this correct?

    Can FreqIT be configured to only send out the latest file for a wildcard?

    Thank you!

    Regards,
    Anna

    ---
    ï¿­ Synchronet ï¿­ Imzadi Box -*- box.imzadi.de
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to acn on Thu Aug 5 11:49:48 2021
    Re: FreqIT magic question
    By: acn to All on Thu Aug 05 2021 04:11 pm

    Hi,

    I've had a look at FreqIT, so that other systems can request files from my BBS via BinkP.

    As the wiki page states, it is possible to define a "MAGIC" eg. for being able to request the latest nodelist using a wildcard as the 'real' filename. So eg. a magic called "NODELIST" can be set to "NODELIST.*" in a file area.

    But if I eg. have a file area where not only the latest nodelist is stored but also older ones, how does the magic react to this?
    If I've undestood the JavaScript source freqit_common.js in 3.18b correctly, I would get *all* nodelist files, is this correct?

    Looking at the current freqit_common.js myself, it appears it would return the *latest* file matching the pattern associated with the magic word.

    Can FreqIT be configured to only send out the latest file for a wildcard?

    Looks to me like that's how it already works:
    if (file === undefined || fent.uldate > file.uldate)
    file = fent;
    --
    digital man

    Breaking Bad quote #1:
    Just because you shot Jess James, don't make you Jesse James. - M. Ehrmantraut Norco, CA WX: 89.5øF, 40.0% humidity, 4 mph WNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From acn@1:103/705 to Digital Man on Fri Aug 6 12:28:14 2021
    Hi dm,

    Looking at the current freqit_common.js myself, it appears it would return the *latest* file matching the pattern associated with the magic word.

    Okay, then I have to apologize.

    Looks to me like that's how it already works:
    if (file === undefined || fent.uldate > file.uldate)
    file = fent;

    I was mislead by the forEach statement two lines above these.

    So it's working just as I like it.
    Cool, thank you!

    Regards,
    Anna

    ---
    ï¿­ Synchronet ï¿­ Imzadi Box -*- box.imzadi.de
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From acn@1:103/705 to Digital Man on Wed Aug 18 10:50:24 2021
    Hi dm,

    I've set up FreqIT with the following freqit.ini using freqitcfg.js:

    ----<freqit.ini>
    MaxFiles=10
    Dirs=weednet_nodelist

    [WEEDNODE]
    Dir=weednet_nodelist
    Secure=No
    ----</freqit.ini>

    In the filebase, several files are available in this directory:

    -rw-r--r-- 1 bbs bbs 1497 Jul 27 13:48 WEEDNET.Z04
    -rw-r--r-- 1 bbs bbs 1497 Jul 30 11:12 WEEDNET.Z11
    -rw-r--r-- 1 bbs bbs 1497 Aug 6 11:44 WEEDNET.Z18
    -rw-r--r-- 1 bbs bbs 1497 Aug 13 07:00 WEEDNET.Z25
    -rw-r--r-- 1 bbs bbs 1498 Jun 21 15:43 WEEDNET.Z76

    If I request eg. "WEEDNET.Z25" from my OpenXP point, the file is sent to my point.
    But if I request "WEEDNODE" from my point, nothing is sent.

    Have I made a mistake?
    How can I debug this behaviour?
    I don't see any output in sbbs.log from FreqIT...

    Thank you!

    Regards,
    Anna

    ---
    ï¿­ Synchronet ï¿­ Imzadi Box -*- box.imzadi.de
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:153/757 to acn on Wed Aug 18 02:33:10 2021
    Hello acn,

    [WEEDNODE]
    Dir=weednet_nodelist
    Secure=No
    ----</freqit.ini>

    I think you need to add a match statement here, something like..

    Match=WEEDNET*.ZIP

    Or something similar..

    Ttyl :-),
    Al
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Al@1:153/757 to acn on Wed Aug 18 02:37:12 2021
    Hello acn,

    I think you need to add a match statement here, something like..

    Match=WEEDNET*.ZIP

    Actually..

    Match=WEEDNET.Z*

    might work better.

    Ttyl :-),
    Al
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From acn@1:103/705 to Al on Fri Aug 20 17:58:16 2021
    Hi Al,

    Match=WEEDNET.Z*
    might work better.

    Thank you for your suggestion.

    I've added it so that my freqit.ini looks like this:

    ----<freqit.ini>
    MaxFiles=10
    Dirs=weednet_nodelist

    [WEEDNODE]
    Dir=weednet_nodelist
    Secure=No
    Match=WEEDNET.*
    ----</freqit.ini>

    But the result stays the same - I don't get any files...

    Is it possible that there is some uppercase/lowercase problem?

    Regards,
    Anna

    ---
    ï¿­ Synchronet ï¿­ Imzadi Box -*- box.imzadi.de
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Lupine Furmen@1:103/705 to acn on Sun Aug 22 19:38:12 2021
    Re: FreqIT magic question
    By: acn to Al on Fri Aug 20 2021 17:58:17

    I've added it so that my freqit.ini looks like this:

    ----<freqit.ini>
    MaxFiles=10
    Dirs=weednet_nodelist

    [WEEDNODE]
    Dir=weednet_nodelist
    Secure=No
    Match=WEEDNET.*
    ----</freqit.ini>

    Hey Anna, You might want to try using the full path to the files location, it may just not be able to find the file in the path.
    -+-

    Lupine Furmen
    -Dallas Vinson
    Furmens Folly (FIDO 1:123/257) - telnet: furmenservices.net:23
    SSH: furmenservices.net:23222
    Before the Web - telnet: furmenservices.net:23232
    Legends of Yesteryear (FIDO 1:123/256) - telnet: furmenservices.net:23322
    Sound Source ]|[ - telnet: furmenservices.net:2323



    Dallas

    ... Only dull people are brilliant at breakfast.

    ---
    þ Synchronet þ Furmen's Folly - furmenservices.net:23
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:153/757 to acn on Tue Aug 24 16:59:40 2021
    Hello acn,

    Match=WEEDNET.Z*
    might work better.

    Thank you for your suggestion.

    I've added it so that my freqit.ini looks like this:

    ----<freqit.ini>
    MaxFiles=10
    Dirs=weednet_nodelist

    [WEEDNODE]
    Dir=weednet_nodelist
    Secure=No
    Match=WEEDNET.*
    ----</freqit.ini>

    But the result stays the same - I don't get any files...

    Hmm. I wonder why that is? I just requested nodelist and z1daily from my synchronet system and in both cases I got the files I was expecting.

    Is it possible that there is some uppercase/lowercase problem?

    I'm not sure but I'll include my freqit.ini below so you can see if there is anything different. I deleted the Dirs= and SecureDirs= lines.


    ==== Begin: "freqit.ini" ====
    ; Global Keys:
    ; Dirs: Comma-separated list of BBS directories to allow FREQing from.
    ; SecureDirs: As with Dirs, but only if it is a secure session.
    ; MaxFiles: The max files that can be FREQed in a single request.
    ;
    ; Magic words...
    ; Each section name is a magic word. Magic sections support the following:
    ; Dir: REQUIRED. The file directory to search for the file.
    ; Secure: Boolean... if true, only available on secure sessions.
    ; Match: A wildcard to identify the file. The most recently uploaded match
    ; to this will be returned.

    ;Dirs=BBS
    ;SecureDirs=Uploads
    MaxFiles=100

    ;[Synchronet]
    ;Dir=BBS
    ;Secure=No
    ;Match=sbbs*.zip
    [fidonews]
    Dir=fido-fidonews
    Secure=No
    Match=FNEW*.ZIP
    [nodelist]
    Dir=fido-nodelist
    Secure=No
    Match=NODELIST.Z*
    [z1daily]
    Dir=fido-nodelist
    Secure=No
    Match=Z1DAILY.Z*
    ==== End: "freqit.ini" ====

    Ttyl :-),
    Al
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From acn@1:103/705 to Al on Thu Aug 26 11:11:08 2021
    Hi Al,

    I've changed it according to your .ini file to:

    ----<freqit.ini>
    ;SecureDirs=Uploads
    MaxFiles=100
    Dirs=weednet_nodelist

    [weednode]
    Dir=weednet_nodelist
    Secure=No
    Match=WEEDNET.Z*

    [weedinfo]
    Dir=weednet_infopack
    Secure=No
    Match=*
    ----</freqit.ini>

    But it still does not work :-(
    Is your SBBS running on Linux? Which version of SBBS are you using?
    Could you try to request eg. WEEDNET.Z32 as one file and/or WEEDNODE as a magic?
    My fido node is 2:240/5824.

    Thank you!

    Regards,
    Anna

    ---
    ï¿­ Synchronet ï¿­ Imzadi Box -*- box.imzadi.de
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:153/757 to acn on Thu Aug 26 14:27:16 2021
    Hello acn,

    But it still does not work :-(

    It worked for me! :)

    Is your SBBS running on Linux? Which version of SBBS are you using?
    Could you try to request eg. WEEDNET.Z32 as one file and/or WEEDNODE
    as a magic? My fido node is 2:240/5824.

    I did request WEEDNET.Z32 and got WEEDNET.Z32 and weednode and I got back WEEDNET.Z32 also.

    I also requested weedinfo and got wn_info.zip.

    Looks OK to me.

    Ttyl :-),
    Al

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From acn@1:103/705 to Al on Fri Aug 27 09:06:24 2021
    Hi Al,

    It worked for me! :)
    I did request WEEDNET.Z32 and got WEEDNET.Z32 and weednode and I got back WEEDNET.Z32 also.
    I also requested weedinfo and got wn_info.zip.
    Looks OK to me.

    Oh?! Okay. Then there is a problem in OpenXP's way of requesting files.
    That's strange.

    Did you request "weednode" or "WEEDNODE"? Do both variants work from your side? Could you check this?

    Thank you very much!

    Regards,
    Anna

    ---
    ï¿­ Synchronet ï¿­ Imzadi Box -*- box.imzadi.de
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Al@1:153/757 to acn on Fri Aug 27 00:13:26 2021
    Hello acn,

    Oh?! Okay. Then there is a problem in OpenXP's way of requesting
    files. That's strange.

    I have a point here running OpenXP and he has requested the nodelist or similar here once in a while. I don't know how well or easy that is for him.

    Did you request "weednode" or "WEEDNODE"? Do both variants work from
    your side? Could you check this?

    I believe I tried both. I don't think the request setup is case sensitive.

    I tried it with both upper and lower case just now and both times I got back WEEDNET.Z39.

    Thank you very much!

    No worries.. any time.

    Ttyl :-),
    Al
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)