• bbs.smb_curmsg in messages to you

    From Nightfox@VERT/DIGDIST to Digital Man on Sat Mar 2 09:28:49 2013
    Hi DM,ããUsing Synchronet's "Scan for messages to you", I've noticed that bbs.smb_curmsgãseems to be relative to the messages to you rather than to the entire list ofãmessages in the sub-board. For instance, when reading the first message toãyou, bbs.smb_curmsg is 0, regardless of whether that message is the firstãmessage in the sub-board or not. Is that the way it was intended? It wouldãhelp if there was avariable that gives the message number that doesn't changeãwhen scanning for messages to you - is there such a variable?ããCurrently, SlyEdit can insert the original author's initials to the front ofãquote lines. The issue is that when a user scans for messages to them andãreplies to the message, SlyEdit gets the wrong original author name because itãuses bbs.smb_curmsg, which in that case will point to a different message thanãif the user was at the regular message read prompt.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Nightfox@VERT/DIGDIST to All on Sat May 4 08:29:17 2013
    This could be a somewhat obscure issue, but here goes.ããWhen replying to messages using Synchronet's "Scan for messages to you"ãfeature, I've noticed that bbs.smb_curmsg seems to be relative to the messagesãto you rather than to the entire list of messages in the sub-board. Forãinstance, when reading the first message to you, bbs.smb_curmsg is 0,ãregardless of whether that message is the first message in the sub-board orãnot.ããI'd like to be able to get the current message number/index, like smb_curmsg,ãthat is always relative to the entire list of messages, even when replying toãmessages using the "Scan for messages to you" feature. Has anyone tried thisãand know if it's possible?ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Tue May 7 01:26:19 2013
    Re: bbs.smb_curmsg in messages to youã By: Nightfox to All on Sat May 04 2013 08:29 amãã > This could be a somewhat obscure issue, but here goes.ã >ã > When replying to messages using Synchronet's "Scan for messages to you"ã > feature, I've noticed that bbs.smb_curmsg seems to be relative to theã > messages to you rather than to the entire list of messages in theã > sub-board. For instance, when reading the first message to you,ã > bbs.smb_curmsg is 0, regardless of whether that message is the firstã > message in the sub-board or not.ã >ã > I'd like to be able to get the current message number/index, likeã > smb_curmsg, that is always relative to the entire list of messages, evenã > when replying to messages using the "Scan for messages to you" feature.ã > Has anyone tried this and know if it's possible?ããHave you tried using bbs.msg_offset or bbs.msg_number? You should be able to ãaccess an absolute message number via JavaScript using either of these property ãvalues.ãã digital manããSynchronet "Real Fact" #27:ãRob Swindell's first computer was a Commodore VIC-20 (1980).ãNorco, CA WX: 57.0øF, 74.0% humidity, 0 mph NNW wind, 0.04 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Tue May 7 19:26:08 2013
    Re: bbs.smb_curmsg in messages to youã By: Digital Man to Nightfox on Tue May 07 2013 01:26:19ãã DM> Have you tried using bbs.msg_offset or bbs.msg_number? You should be ableã DM> to access an absolute message number via JavaScript using either of theseã DM> property values.ããI'll try those.. Thanks.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Wed May 8 23:12:28 2013
    Re: bbs.smb_curmsg in messages to youã By: Nightfox to Digital Man on Tue May 07 2013 07:26 pmãã > Re: bbs.smb_curmsg in messages to youã > By: Digital Man to Nightfox on Tue May 07 2013 01:26:19ã >ã > DM> Have you tried using bbs.msg_offset or bbs.msg_number? You should beã > DM> able to access an absolute message number via JavaScript using eitherã > DM> of these property values.ã >ã > I'll try those.. Thanks.ããThe msg_offset is a 0-based offset into the index of all messages currently in ãthe message area (sub-board). The msg_number is the 1-based unique number ãassigned to that message (and doesn't change when new messages are added or ãmessages are deleted).ãã digital manããSynchronet "Real Fact" #42:ãSynchronet added Baja/PCMS support with v2.00a (1994).ãNorco, CA WX: 58.9øF, 63.0% humidity, 7 mph NW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri May 10 20:50:21 2013
    Re: bbs.smb_curmsg in messages to youã By: Digital Man to Nightfox on Wed May 08 2013 23:12:28ãã DM> The msg_offset is a 0-based offset into the index of all messagesã DM> currently in the message area (sub-board). The msg_number is the 1-basedã DM> unique number assigned to that message (and doesn't change when newã DM> messages are added or messages are deleted).ããI've started examining the values of bbs.msg_offset and bbs.msg_number (using aã"development" version of SlyEdit on my BBS). When I reply to a message, usingãthe message read prompt, it seems that both bbs.msg_offset and bbs.msg_numberãare always 0, no matter which message I'm replying to. It doesn't seem toãmatter which message group or sub-board I'm reading/replying in, either. Notãsure if this is normal?ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Sun May 12 00:18:20 2013
    Re: bbs.smb_curmsg in messages to youã By: Nightfox to Digital Man on Fri May 10 2013 08:50 pmãã > Re: bbs.smb_curmsg in messages to youã > By: Digital Man to Nightfox on Wed May 08 2013 23:12:28ã >ã > DM> The msg_offset is a 0-based offset into the index of all messagesã > DM> currently in the message area (sub-board). The msg_number is theã > DM> 1-based unique number assigned to that message (and doesn't changeã > DM> when new messages are added or messages are deleted).ã >ã > I've started examining the values of bbs.msg_offset and bbs.msg_numberã > (using a "development" version of SlyEdit on my BBS). When I reply to aã > message, using the message read prompt, it seems that both bbs.msg_offsetã > and bbs.msg_number are always 0, no matter which message I'm replying to.ã > It doesn't seem to matter which message group or sub-board I'mã > reading/replying in, either. Not sure if this is normal?ããIt's as designed apparently, but unexpected. I'm making a change now in CVS ãwhich will allow those properties to be used in more places than just the "show ãmessage header" function (which doesn't directly use JavaScript) - that was an ãoversight on my part.ãã digital manããSynchronet "Real Fact" #25:ãThe Synchronet Web Server was written predominantly by Stephen Hurd (Deuce).ãNorco, CA WX: 70.2øF, 67.0% humidity, 1 mph NW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Sun May 12 09:21:13 2013
    Re: bbs.smb_curmsg in messages to youã By: Digital Man to Nightfox on Sun May 12 2013 00:18:20ãã >> I've started examining the values of bbs.msg_offset and bbs.msg_numberã >> (using a "development" version of SlyEdit on my BBS). When I reply toã >> a message, using the message read prompt, it seems that bothã >> bbs.msg_offset and bbs.msg_number are always 0, no matter whichã >> message I'm replying to. It doesn't seem to matter which message groupã >> or sub-board I'm reading/replying in, either. Not sure if this isã >> normal?ãã DM> It's as designed apparently, but unexpected. I'm making a change now inã DM> CVS which will allow those properties to be used in more places than justã DM> the "show message header" function (which doesn't directly use JavaScript)ã DM> - that was an oversight on my part.ããI updated to this morning's build, but I'm still seeing some odd behavior withãbbs.msg_offset. I first read a few messages (using the message read prompt)ãand bbs.msg_offset was 0 for each message. Then I tried the "Scan for messagesãto you" in a different sub-board, and bbs.msg_offset had a non-zero valueã(which I imagine was correct for that situation). Then I came back to theãfirst sub-board I was in and read messages again with the Message read prompt,ãand bbs.msg_offset was 2. The message I was reading was the last message inãthe sub-board, so that doesn't seem right.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Sun May 12 13:44:16 2013
    Re: bbs.smb_curmsg in messages to youã By: Nightfox to Digital Man on Sun May 12 2013 09:21 amãã > Re: bbs.smb_curmsg in messages to youã > By: Digital Man to Nightfox on Sun May 12 2013 00:18:20ã >ã > >> I've started examining the values of bbs.msg_offset and bbs.msg_numberã > >> (using a "development" version of SlyEdit on my BBS). When I reply toã > >> a message, using the message read prompt, it seems that bothã > >> bbs.msg_offset and bbs.msg_number are always 0, no matter whichã > >> message I'm replying to. It doesn't seem to matter which message groupã > >> or sub-board I'm reading/replying in, either. Not sure if this isã > >> normal?ã >ã > DM> It's as designed apparently, but unexpected. I'm making a change nowã > DM> in CVS which will allow those properties to be used in more placesã > DM> than just the "show message header" function (which doesn't directlyã > DM> use JavaScript) - that was an oversight on my part.ã >ã > I updated to this morning's build, but I'm still seeing some odd behaviorã > with bbs.msg_offset. I first read a few messages (using the message readã > prompt) and bbs.msg_offset was 0 for each message. Then I tried the "Scanã > for messages to you" in a different sub-board, and bbs.msg_offset had aã > non-zero value (which I imagine was correct for that situation). Then Iã > came back to the first sub-board I was in and read messages again with theã > Message read prompt, and bbs.msg_offset was 2. The message I was readingã > was the last message in the sub-board, so that doesn't seem right.ããWhat about the bbs.msg_number property? It behaving as you would expect?ãã digital manããSynchronet "Real Fact" #1:ãSynchronet version 2 for DOS and OS/2 was released to the public domain in 1997.ãNorco, CA WX: 76.7øF, 50.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Sun May 12 19:30:26 2013
    Re: bbs.smb_curmsg in messages to youã By: Digital Man to Nightfox on Sun May 12 2013 13:44:16ãã DM> What about the bbs.msg_number property? It behaving as you would expect?ããI haven't tried using bbs.msg_number yet, but so far it seems to be behaving asãI would expect. But I'm a little hesitant to use it forãMsgBase.get_msg_header(), since it doesn't change when new messages are addedãor deleted. SlyEdit (currently) uses message indexes, since I've alwaysãthought that was the most reliable way to reference a message. I remember aãdiscussion a few months ago that I think involved using bbs.msg_number in aãcalculation to come up with an absolute message number, which wouldn'tãnecessarily be for a message that exists. Can bbs.msg_number be used directlyãin MsgBase.get_msg_header (with the by_offset parameter as false)?ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Tue May 14 17:53:28 2013
    Re: bbs.smb_curmsg in messages to youã By: Nightfox to Digital Man on Sun May 12 2013 07:30 pmãã > Re: bbs.smb_curmsg in messages to youã > By: Digital Man to Nightfox on Sun May 12 2013 13:44:16ã >ã > DM> What about the bbs.msg_number property? It behaving as you wouldã > DM> expect?ã >ã > I haven't tried using bbs.msg_number yet, but so far it seems to beã > behaving as I would expect. But I'm a little hesitant to use it forã > MsgBase.get_msg_header(), since it doesn't change when new messages areã > added or deleted. SlyEdit (currently) uses message indexes, since I'veã > always thought that was the most reliable way to reference a message.ããNo, it's actually the opposite. Think of the message number like a "serial ãnumber" for the message. It won't be reused and never expires.ãã > Iã > remember a discussion a few months ago that I think involved usingã > bbs.msg_number in a calculation to come up with an absolute message number,ã > which wouldn't necessarily be for a message that exists.ããThat was an unrelated subject, but yes, there can be "wholes" in the message ãnumbers (where a message once existed but was deleted).ãã > Canã > bbs.msg_number be used directly in MsgBase.get_msg_header (with theã > by_offset parameter as false)?ããYes, exactly.ããThe bbs.msg_offset property will probably just be removed since it doesn't ãprovide any benefit.ãã digital manããSynchronet "Real Fact" #66:ãSEXYZ is as a 32-bit replacement for [F]DSZ, CE-XYZ and other protocol drivers.ãNorco, CA WX: 78.3øF, 38.0% humidity, 13 mph NNW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Tue May 14 20:19:33 2013
    Re: bbs.smb_curmsg in messages to youã By: Digital Man to Nightfox on Tue May 14 2013 17:53:28ãã >> Canã >> bbs.msg_number be used directly in MsgBase.get_msg_header (with theã >> by_offset parameter as false)?ãã DM> Yes, exactly.ãã DM> The bbs.msg_offset property will probably just be removed since it doesn'tã DM> provide any benefit.ããI've updated my development SlyEdit to use bbs.msg_number instead ofãbbs.msg_offset, and it indeed seems to get the correct message header even inãcases where bbs.msg_offset didn't (such as when replying to messages duringãscanning for new messages to you). I'll release a new version of SlyEdit withãthis change.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Wed May 15 16:46:06 2013
    Re: bbs.smb_curmsg in messages to youã By: Nightfox to Digital Man on Tue May 14 2013 08:19 pmãã > Re: bbs.smb_curmsg in messages to youã > By: Digital Man to Nightfox on Tue May 14 2013 17:53:28ã >ã > >> Canã > >> bbs.msg_number be used directly in MsgBase.get_msg_header (with theã > >> by_offset parameter as false)?ã >ã > DM> Yes, exactly.ã >ã > DM> The bbs.msg_offset property will probably just be removed since itã > DM> doesn't provide any benefit.ã >ã > I've updated my development SlyEdit to use bbs.msg_number instead ofã > bbs.msg_offset, and it indeed seems to get the correct message header evenã > in cases where bbs.msg_offset didn't (such as when replying to messagesã > during scanning for new messages to you). I'll release a new version ofã > SlyEdit with this change.ããBut you do know that bbs.msg_number property doesn't work with any version of ãSynchronet before the current development builds, right? Are you handling that ãpossibility (backwards compatibility) in your editor?ãã digital manããSynchronet "Real Fact" #7:ãSynchronet was originally intended as a replacement for WWIV BBS software.ãNorco, CA WX: 74.7øF, 54.0% humidity, 17 mph WNW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Wed May 15 18:01:11 2013
    I've updated my development SlyEdit to use bbs.msg_number instead ofã > > bbs.msg_offset, and it indeed seems to get the correct message headerã > > even in cases where bbs.msg_offset didn't (such as when replying toã > > messages during scanning for new messages to you). I'll release a newã > > version of SlyEdit with this change.ã > ã > But you do know that bbs.msg_number property doesn't work with any versionã > of Synchronet before the current development builds, right? Are youã > handling that possibility (backwards compatibility) in your editor?ããBut the Synchronet JavaScript documentation says bbs.msg_number was introducedãin version 3.10:ãhttp://www.synchro.net/docs/jsobjs.html#bbs_propertiesããIs that not the case?ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Thu May 16 00:32:01 2013
    Re: bbs.smb_curmsg in messages to youã By: Nightfox to Digital Man on Wed May 15 2013 06:01 pmãã > > > I've updated my development SlyEdit to use bbs.msg_number instead ofã > > > bbs.msg_offset, and it indeed seems to get the correct message headerã > > > even in cases where bbs.msg_offset didn't (such as when replying toã > > > messages during scanning for new messages to you). I'll release aã > > > new version of SlyEdit with this change.ã > >ã > > But you do know that bbs.msg_number property doesn't work with anyã > > version of Synchronet before the current development builds, right? Areã > > you handling that possibility (backwards compatibility) in your editor?ã >ã > But the Synchronet JavaScript documentation says bbs.msg_number wasã > introduced in version 3.10:ã > http://www.synchro.net/docs/jsobjs.html#bbs_propertiesã >ã > Is that not the case?ããIt was, but as you reported, it didn't work. I fixed this on May 12th:ãhttp://cvs.synchro.net/commitlog.ssjs#29419ãIn all versions prior to that, it would contain 0 unless the script was running ã*while* the message was being displayed (which is unlikely).ãã digital manããSynchronet "Real Fact" #13:ãSBBSecho was originally written by Allen Christiansen (King Drafus) in 1994.ãNorco, CA WX: 56.5øF, 88.0% humidity, 2 mph WNW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Thu May 16 07:44:43 2013
    Re: bbs.smb_curmsg in messages to youã By: Digital Man to Nightfox on Thu May 16 2013 00:32:01ãã >> But the Synchronet JavaScript documentation says bbs.msg_number wasã >> introduced in version 3.10:ãã DM> It was, but as you reported, it didn't work. I fixed this on May 12th:ã DM> http://cvs.synchro.net/commitlog.ssjs#29419ã DM> In all versions prior to that, it would contain 0 unless the script wasã DM> running *while* the message was being displayed (which is unlikely).ããThat's right.. I somehow had forgotten that detail when I posted my lastãquestion. I'll have SlyEdit use its previous behavior for earlier versions forãbackward-compatibility.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã