• Re: Using JSexec to run I

    From Mike Powell@1:103/705 to ACCESSION on Tue Nov 18 09:54:54 2025
    User-Agent: Synchronet msgeditor master/123f2d28a
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit

    Speaking of, testing DDMsgReader here and it is not really working as expected. :)

    Except this message seems to be written with the Synchronet msgeditor..?

    Are you having issues with DDMsgReader separately and using a different editor
    to tell us about it?

    No. I was using DDMsgReader and when I tried the reply function, it
    brought up the Synchronet editor, which was not "as expected" since DD was installed per the synchronet wiki page.

    I assumed that I misunderstood and that DDMsgReader is a "reader," as the
    name suggests, and doesn't provide an external msg editor.

    As for why I replied to a random message from Gamgee... I was looking for a message that I could test reply-and-quote with, and since Gamgee's metioned "misconfiguration" I figured testing with it was appropriate. ;)


    * SLMR 2.1a * Multitasking: When you get the weekend chore list.
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Mike Powell on Tue Nov 18 10:50:25 2025
    Re: Re: Using JSexec to run I
    By: Mike Powell to ACCESSION on Tue Nov 18 2025 09:54 am

    No. I was using DDMsgReader and when I tried the reply function, it brought up the Synchronet editor, which was not "as expected" since DD was installed per the synchronet wiki page.

    I assumed that I misunderstood and that DDMsgReader is a "reader," as the name suggests, and doesn't provide an external msg editor.

    That's correct; DDMsgReader simply asks Synchronet to let you reply to a message, and Synchronet will use the editor you've chosen in your user configuration.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Accession@1:103/705 to Mike Powell on Tue Nov 18 14:00:41 2025
    Hey Mike!

    On Mon, Nov 18 2025 08:54:54 -0600, you wrote:

    No. I was using DDMsgReader and when I tried the reply function, it
    brought up the Synchronet editor, which was not "as expected" since
    DD was installed per the synchronet wiki page.

    It will use whatever you have set as your default editor, which can be changed in your account settings.
    I assumed that I misunderstood and that DDMsgReader is a "reader,"
    as the name suggests, and doesn't provide an external msg editor.

    That is correct. DDMsgReader reads the messages, then uses whatever you have configured for an external editor to write messages. I would suggest trying SlyEdit with DDMsgReader, since they are made by the same person, and work well together. Besides the one you have already used, there is also some other editors specifically for Synchronet (well, BBSs that supports javascript, I suppose), as well as any old "door" external editors like IceEdit, QuikEdit, etc. I've also used nano and vim as external editors (with a "restricted" option in place to not allow users to access the hard drive at all, besides saving their message).

    As for why I replied to a random message from Gamgee... I was
    looking for a> message that I could test reply-and-quote with, and
    since Gamgee's metioned "misconfiguration" I figured testing with it
    was appropriate. ;)

    Hah! I'd agree you picked a perfect message to reply to! ;)

    Regards,
    Nick

    ... Sarcasm, because beating people up is illegal.
    ---
    ï¿­ Synchronet ï¿­ _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Accession on Tue Nov 18 13:07:31 2025
    Re: Re: Using JSexec to run I
    By: Accession to Mike Powell on Tue Nov 18 2025 02:00 pm

    and work well together. Besides the one you have already used, there is also some other editors specifically for Synchronet (well, BBSs that supports javascript, I suppose),

    I don't know of another BBS package that supports JavaScript. But even for those that do, I'd expect SlyEdit would still only work with Synchronet. Synchronet has a very specific implementation of what it exposes via JavaScript, which means that JS mods that work with Synchronet have to use what Synchronet provides via JS. If another BBS package supports JavaScript, it's extremely likely that the functions & other objects & things it provides via JS would have different names, so any JS mods for Synchronet wouldn't work with it.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Accession@1:103/705 to Nightfox on Tue Nov 18 20:31:57 2025
    Hey Nightfox!

    On Mon, Oct 18 2025 15:07:31 -0600, you wrote:

    I don't know of another BBS package that supports JavaScript. But
    even for those that do, I'd expect SlyEdit would still only work
    with Synchronet. Synchronet has a very specific implementation of
    what it exposes via JavaScript, which means that JS mods that work
    with Synchronet have to use what Synchronet provides via JS. If
    another BBS package supports JavaScript, it's extremely likely that
    the functions & other objects & things it provides via JS would have different names, so any JS mods for Synchronet wouldn't work with
    it.

    That's kind of what I figured. When I wrote it, I threw that out with a bit of a wider range blanket statement on purpose to cover anything that I may have not heard about, so nobody else could jump in and try to correct me with some kind of "one-up" answer. Looks like I wasn't able to avoid that, after all.

    Regards,
    Nick

    ... Sarcasm, because beating people up is illegal.
    ---
    ï¿­ Synchronet ï¿­ _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mike Powell@1:103/705 to NIGHTFOX on Wed Nov 19 11:13:06 2025
    Re: Re: Using JSexec to run IRCd
    By: Mike Powell to Dan Clough on Mon Nov 17 2025 03:35 pm

    Nobody's claiming "perfection" here. Perhaps "properly configured" on
    non-crappy hardware?

    Speaking of, testing DDMsgReader here and it is not really working as expected. :)

    In what way? You're welcome to contact me with any questions or reports of behavior that isn't expected.

    I was expecting it to work as an external editor, which I think was a misunderstanding on my part. The "Reader" part did seem to work, although I
    did get this error whenever I tried to answer "yes" to this question:

    Search all groups for unread messages to you?

    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 1776: TypeError: msg_area.sub[this.subBoardCode] is undefined

    Also, as a module, it seemed to be ignoring any command line options I
    added, although I may have been adding them to the wrong module entry.


    * SLMR 2.1a * And Homer saith unto them, "D'OH!" -- Bart 17:3
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mike Powell@1:103/705 to ACCESSION on Wed Nov 19 11:13:06 2025
    That is correct. DDMsgReader reads the messages, then uses whatever you have configured for an external editor to write messages. I would suggest trying SlyEdit with DDMsgReader, since they are made by the same person, and work wel
    together.

    I shall try SlyEdit when I get a chance.

    etc. I've also used nano and vim as external editors (with a "restricted" option in place to not allow users to access the hard drive at all, besides saving their message).

    I "accidentally" tried the default pico install in the sense that I didn't
    ask synchronet to add it... it just appeared at some point with an upgrade
    or fresh install. I didn't know it was there until a user tried to use it
    and it barfed on them -- pico wasn't installed on that machine at the time.

    Here, "pico" actually calls nano. I tried it out earlier this week, too, and it works ok with plain ascii messages but barfs hard on any replies to
    messages that have any extended ascii in them. I would not mind using that
    as my *personal* editor, but wouldn't want to let users use it as they'd
    not know not to quote any high ascii messages.

    As for why I replied to a random message from Gamgee... I was
    looking for a> message that I could test reply-and-quote with, and
    since Gamgee's metioned "misconfiguration" I figured testing with it
    was appropriate. ;)

    Hah! I'd agree you picked a perfect message to reply to! ;)

    Considering that I figured I was misunderstanding something, I thought it
    was, too! :D


    * SLMR 2.1a * Man who fights with wife all day gets no piece at night.
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Mike Powell on Wed Nov 19 11:23:28 2025
    Re: Re: Using JSexec to run I
    By: Mike Powell to NIGHTFOX on Wed Nov 19 2025 11:13 am

    misunderstanding on my part. The "Reader" part did seem to work, although I did get this error whenever I tried to answer "yes" to this question:

    Search all groups for unread messages to you?

    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 1776: TypeError: msg_area.sub[this.subBoardCode] is undefined

    Are you using the latest version from the Git repository? In the one currently in the Git repository, line 1776 doesn't have msg_area.sub[this.subBoardCode]. The one currently in the Git repository has this on line 1776:

    addAuthorToTwitList: 9,

    If you haven't updated, I would recommend updating with the latest that's currently in the Git repository.

    Also, as a module, it seemed to be ignoring any command line options I added, although I may have been adding them to the wrong module entry.

    Are you referring to using it in SCFG > System > Loadable Modules (for Read Mail, Scan Msgs, and List Msgs)? When using it there, you don't need to add any command-line options (and I believe I made it so that if used that way, it probably wouldn't look at any additional command-line options you add). When used as a module there, Synchronet passes a few command-line arguments. DDMsgReader is designed to work with the command-line arguments that Synchronet passes when used as a module there.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Accession@1:103/705 to Mike Powell on Wed Nov 19 17:18:18 2025
    Hey Mike!

    On Tue, Oct 19 2025 10:13:06 -0600, you wrote:

    Here, "pico" actually calls nano. I tried it out earlier this week,
    too, and it works ok with plain ascii messages but barfs hard on any
    replies to messages that have any extended ascii in them. I would
    not mind using that as my *personal* editor, but wouldn't want to
    let users use it as they'd not know not to quote any high ascii
    messages.

    I would imagine because nano is using your locale, which in most cases is UTF-8 these days. If you have a locale installed where you are able to view high ascii in your terminal, then you could set your locale to that while running nano, and then set it back when it's done. Above and beyond that, I don't believe nano supports ansi codes, so you won't be able to view ansi regardless.

    Considering that I figured I was misunderstanding something, I> thought it was, too! :D

    You're just full of all sorts of correct assumptions these days, aren't you? ;)

    Regards,
    Nick

    ... Sarcasm, because beating people up is illegal.
    ---
    ï¿­ Synchronet ï¿­ _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mike Powell@1:103/705 to NIGHTFOX on Thu Nov 20 11:37:26 2025
    misunderstanding on my part. The "Reader" part did seem to work, although
    I did get this error whenever I tried to answer "yes" to this question:

    Search all groups for unread messages to you?

    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 1776: TypeError: msg_area.sub[this.subBoardCode] is undefined

    Are you using the latest version from the Git repository? In the one currentl
    in the Git repository, line 1776 doesn't have msg_area.sub[this.subBoardCode].
    The one currently in the Git repository has this on line 1776:

    addAuthorToTwitList: 9,

    If you haven't updated, I would recommend updating with the latest that's currently in the Git repository.

    No, I tried the version that came the last time I pulled Synchronet for a compile... probably from the Spring or early Summer.

    Also, as a module, it seemed to be ignoring any command line options I added, although I may have been adding them to the wrong module entry.

    Are you referring to using it in SCFG > System > Loadable Modules (for Read Mail, Scan Msgs, and List Msgs)?

    Yes!

    When using it there, you don't need to add
    any command-line options (and I believe I made it so that if used that way, it
    probably wouldn't look at any additional command-line options you add). When used as a module there, Synchronet passes a few command-line arguments. DDMsgReader is designed to work with the command-line arguments that Synchrone
    passes when used as a module there.

    Reason I was trying to add args was because it always seemed to "act" the
    same way regardless of which command was being executed in Synchronet, i.e.
    the "check for new mail" and "check for *my* new mail" options both
    resulted in a "check for new mail" (to anyone) search. I tried a command line arg to try to get it to search for only "my new mail" but it ignored it, as
    you pointed out.

    Something else it did with the new mail scan... it started in the last msg
    area I was in rather than checking all areas. So, if I happened to change
    to the very last group/area on the BBS, it would only search that one. I
    had to be sitting in Group 1, Area 1 before it would search them all.

    Maybe that is all because it is ~9 month old code, though.


    * SLMR 2.1a * Monday is a hard way to spend 1/7 of your life.
    ---
    þ Synchronet þ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Mike Powell on Thu Nov 20 11:48:59 2025
    Re: Re: Using JSexec to run I
    By: Mike Powell to NIGHTFOX on Thu Nov 20 2025 11:37 am

    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 1776: TypeError:
    msg_area.sub[this.subBoardCode] is undefined

    Are you using the latest version from the Git repository? In the one

    No, I tried the version that came the last time I pulled Synchronet for a compile... probably from the Spring or early Summer.

    It would help to use the latest version. Otherwise the line number in that error message is not accurate, and it can be hard to track down the issue unless I see the exact .js script you're using. Also, if you aren't using the latest version, the issue may have been fixed by now (if the issue has been seen before).

    Reason I was trying to add args was because it always seemed to "act" the same way regardless of which command was being executed in Synchronet, i.e. the "check for new mail" and "check for *my* new mail" options both resulted in a "check for new mail" (to anyone) search. I tried a command line arg to try to get it to search for only "my new mail" but it ignored it, as you pointed out.

    It should behave correctly when used as a loadable module. No additional command-line arguments should be needed when used that way. If it doesn't behave correctly, then that's something I could look into, but I've been using it as a loadable module for a while now, and it has been working well as far as I can tell.

    Something else it did with the new mail scan... it started in the last msg area I was in rather than checking all areas. So, if I happened to change to the very last group/area on the BBS, it would only search that one. I had to be sitting in Group 1, Area 1 before it would search them all.

    Maybe that is all because it is ~9 month old code, though.

    That's a weird behavior that I don't recall seeing. But I would definitely recommend updating so you have the latest updates & fixes.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)