TZUTC: -0700   
   MSGID: 57487.sync_sys@1:103/705 2c3ad5bb   
   REPLY: 57485.sync_sys@1:103/705 2c3aa2e7   
   PID: Synchronet 3.20e-Win32 master/cc717b402 Mar 08 2025 MSC 1942   
   TID: SBBSecho 3.23-Linux master/69f4a097d Mar 12 2025 GCC 12.2.0   
   COLS: 80   
   BBSID: VERT   
   CHRS: CP437 2   
   NOTE: FSEditor.js v1.105   
    Re: Re: FreqIt doesn't respond to incoming .req files   
    By: Gamgee to Digital Man on Fri Mar 14 2025 02:19 pm   
      
    > Re: Re: FreqIt doesn't respond to incoming .req files   
    > By: Digital Man to nelgin on Thu Mar 13 2025 11:05 pm   
    >   
    > > > On Thu, 13 Mar 2025 14:06:07 -0700   
    > > > "Daniel Clough" (VERT) wrote:   
    > > > > https://gitlab.synchro.net/main/sbbs/-/issues/888#note_6763   
    >   
    > > > > I have figured this out and will close the issue. Apparently the   
    > > > > magic name defined in ../ctrl/freqit.ini (as in [ALLFILES]) must be   
    > > > > in lowercase. I had it in all CAPS and when I changed it to   
    > > > > lowercase things work as expected. Ugh.   
    >   
    > > > That sounds like a bug in itself. I would have thought it'd have to   
    > > > match exact case or be case insensitive rather than only matching   
    > > > lower case. That sort of doesn't make sense.   
    >   
    > > The code (freqit_common.js) calls wildmatch() for magic names,   
    > > case-insensitively:   
    > > wildmatch(fent.name, match, true)   
    >   
    > > so it certainly *should* be case-insensitive.   
    >   
    > Agreed that it *should* be, but I just tested things again and it most   
    > certainly is not. I tested it by changing *ONLY* the case of the header in   
    > the freqit.ini file, and repeating the test from a remote system.   
    >   
    > Just to be clear what I'm talking about, I'm saying the section header in   
    > the freqit.ini file (as in: [ALLFILES]) does not work if it's all caps.   
    > When it is lowercase it works as expected.   
    >   
    > What I am *NOT* talking about is the file request netmail itself, on the   
    > Subject line. That can be written: FR: ALLFILES ... or FR: allfiles , and   
    > either one works fine.   
    >   
    > I welcome someone else trying this test and reporting results.   
      
   I understand. I'm just looking at the code (freqit_common.js) and I see that   
   it's using the Sync-JS global "wildmatch" function to do the magic name and   
   filename comparisons against the requested name and that function (wildmatch,   
   see https://www.synchro.net/docs/jsobjs.html for details) compares   
   case-insensitively by default (the script author would have had to pass "true"   
   as the first argument to wildmatch() for it to behave case-sensitively). So   
   the intention of the script is for it to be compare case-insensitively. If   
   it's not, it could be a bug in wildmatch() or perhaps in the script itself.   
   --    
    digital man (rob)   
      
   Breaking Bad quote #42:   
   We have laws, detective. Have your kindergarten teacher read them to you.   
   Norco, CA WX: 46.0øF, 90.0% humidity, 0 mph NNW wind, 0.04 inches rain/24hrs   
   --- SBBSecho 3.23-Linux   
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)   
   SEEN-BY: 1/19 16/0 19/37 103/13 705 105/81 106/201 123/130 124/5016   
   SEEN-BY: 128/187 142/104 153/757 7715 154/10 30 110 203/0 218/700   
   SEEN-BY: 221/0 226/30 227/114 229/110 114 206 317 400 426 428 470   
   SEEN-BY: 229/550 700 705 240/1120 2100 5411 5832 5853 5890 266/512   
   SEEN-BY: 280/464 5003 5006 291/111 292/8125 301/1 320/119 219 319   
   SEEN-BY: 320/2119 322/757 762 326/101 341/66 234 342/200 396/45 423/120   
   SEEN-BY: 460/58 467/888 633/280 712/848 770/1 902/26 2454/119 5020/400   
   SEEN-BY: 5075/35   
   PATH: 103/705 280/464 240/5832 320/219 229/426   
      
|