• First-time scan pointer value

    From Nightfox@VERT/DIGDIST to Digital Man on Sat Aug 6 09:27:19 2016
    Hi DM,ããI've noticed a possible issue with the scan pointer for a new user withãSynchronet 3.17. The first time a new user starts reading one of theãsub-boards, msg_area.sub[subBoardCode].scan_ptr has a very high value,ã4294967295. I'm not sure if that's valid or not. I have a message reader modãI wrote in JavaScript, and it has had trouble accessing messages for new users,ãseemingly due to that value of scan_ptr. I found that I can check for thatãvalue and work around it, but I still wanted to let you know in case that valueãis not by design.ããI'm running Synchronet for Windows. I noticed the issue a couple weeks ago. Iãwas running the Synchronet build from January 3, 2016, then I updated to theãlatest build at the time (July 23) and noticed the issue was still there.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Sat Aug 6 12:19:17 2016
    Re: First-time scan pointer valueã By: Nightfox to Digital Man on Sat Aug 06 2016 09:27 amãã > Hi DM,ã >ã > I've noticed a possible issue with the scan pointer for a new user withã > Synchronet 3.17. The first time a new user starts reading one of theã > sub-boards, msg_area.sub[subBoardCode].scan_ptr has a very high value,ã > 4294967295. I'm not sure if that's valid or not.ããIt's not a valid message number, but it is a valid pointer value (0xffffffff)ãwhich indicates that user's message scan pointer should point to the *latest*ãmessage number when the msg pointers are save for the first time (e.g. when aãnew user logs off). This should only occur:ãã1. If you have SCFG->System->New User Values->Days of New Messages set to 0.ã2. And a new user logs on for the first timeããI think the default for "Days of New Messages" is not 0. Did you change it? 0ãis valid, but it means that a new user would see *no* new messages when theyãfirst scan for new messages upon logging as as "new". I just want to make sureãyou knew how that worked.ãã >I have a message readerã > mod I wrote in JavaScript, and it has had trouble accessing messages for newã > users, seemingly due to that value of scan_ptr. I found that I can checkã > for that value and work around it, but I still wanted to let you know inã > case that value is not by design.ããYes, it's by design. It was added in Nov-2015 with this commit:ãhttp://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/userdat.c?r1=1.160&r2=1.16ã1ãã~0 (of a 32-bit integer) is short-hand for 0xffffffff.ãã > I'm running Synchronet for Windows. I noticed the issue a couple weeks ago.ã > I was running the Synchronet build from January 3, 2016, then I updated toã > the latest build at the time (July 23) and noticed the issue was stillã > there.ããI think it's going stay that way too. :-)ãã digital manããSynchronet/BBS Terminology Definition #30:ãNNTP = Network News Transfer ProtocolãNorco, CA WX: 79.8øF, 62.0% humidity, 3 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Sat Aug 6 14:33:03 2016
    Re: First-time scan pointer valueã By: Digital Man to Nightfox on Sat Aug 06 2016 12:19:17ãã >> the sub-boards, msg_area.sub[subBoardCode].scan_ptr has a very highã >> value, 4294967295. I'm not sure if that's valid or not.ãã DM> It's not a valid message number, but it is a valid pointer valueã DM> (0xffffffff) which indicates that user's message scan pointer should pointã DM> to the *latest* message number when the msg pointers are save for theã DM> first time (e.g. when a new user logs off). This should only occur:ãã DM> 1. If you have SCFG->System->New User Values->Days of New Messages set toã DM> 0.ã DM> 2. And a new user logs on for the first timeãã DM> I think the default for "Days of New Messages" is not 0. Did you changeã DM> it? 0 is valid, but it means that a new user would see *no* new messagesã DM> when they first scan for new messages upon logging as as "new". I justã DM> want to make sure you knew how that worked.ããMy "Days of New Messages" setting is 0. I may have changed that a long timeãago; I don't remember now.ãã >>I have a message readerã >> mod I wrote in JavaScript, and it has had trouble accessing messagesã >> for new users, seemingly due to that value of scan_ptr. I found thatã >> I can check for that value and work around it, but I still wanted toã >> let you know in case that value is not by design.ãã DM> Yes, it's by design. It was added in Nov-2015 with this commit:ã DM> http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/userdat.c?r1=1.160&r2ã DM> =1.16 1ããI see, thanks.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Sun Aug 7 11:08:23 2016
    Re: First-time scan pointer valueã By: Nightfox to Digital Man on Sat Aug 06 2016 02:33 pmãã > Re: First-time scan pointer valueã > By: Digital Man to Nightfox on Sat Aug 06 2016 12:19:17ã >ã > >> the sub-boards, msg_area.sub[subBoardCode].scan_ptr has a very highã > >> value, 4294967295. I'm not sure if that's valid or not.ã >ã > DM> It's not a valid message number, but it is a valid pointer valueã > DM> (0xffffffff) which indicates that user's message scan pointer shouldã > DM> point to the *latest* message number when the msg pointers are save forã > DM> the first time (e.g. when a new user logs off). This should only occur:ã >ã > DM> 1. If you have SCFG->System->New User Values->Days of New Messages setã > DM> to 0.ã > DM> 2. And a new user logs on for the first timeã >ã > DM> I think the default for "Days of New Messages" is not 0. Did you changeã > DM> it? 0 is valid, but it means that a new user would see *no* newã > DM> messages when they first scan for new messages upon logging as asã > DM> "new". I just want to make sure you knew how that worked.ã >ã > My "Days of New Messages" setting is 0. I may have changed that a long timeã > ago; I don't remember now.ããThat (0) is actually the default now. So you probably didn't change it. Butãbefore Nov-2015, new users had *all* messages marked as "new" (and scan ptrsãwould be initialized to 0).ãã digital manããSynchronet/BBS Terminology Definition #8:ãBSO = Binkley Style OutboundãNorco, CA WX: 75.9øF, 68.0% humidity, 5 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Mauro Veiga@VERT/ABUTRE2 to DIGITAL MAN on Sat Aug 13 18:28:00 2016
    Quoting Digital Man to Nightfox at 08-06-16 12:19 <=-ãã Hello, Rob!ãã DM> 1. If you have SCFG->System->New User Values->Days of New Messages setã DM> to 0. 2. And a new user logs on for the first timeãã DM> I think the default for "Days of New Messages" is not 0. Did youã DM> change it? 0 is valid, but it means that a new user would see *no* newã DM> messages when they first scan for new messages upon logging as asã DM> "new". I just want to make sure you knew how that worked.ã ã >I have a message readerã > mod I wrote in JavaScript, and it has had trouble accessing messages for newã > users, seemingly due to that value of scan_ptr. I found that I can checkã > for that value and work around it, but I still wanted to let you know inã > case that value is not by design.ãã DM> Yes, it's by design. It was added in Nov-2015 with this commit:ã DM> http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/userdat.c?r1=1.160ã DM> &r2=1.16 1ãã DM> ~0 (of a 32-bit integer) is short-hand for 0xffffffff.ãã I'm using Sync 3.16c and not have Days of News Messages fieldã on New User Values. How can i upgrade this?ãã TIAãã []'sã ³ã ÄÄÄÄÄÄÄÄÄÄÄ Mauro R. Veiga Ä abutre.no-ip.org:2323 ÄÄÄÄÄÄÄÄ * ÄÄÄÄÄÄã ³ããMeSSaGe SiTTeR 1.00 - Full VersionãLive Long and Prosperãã... While drunk, O'Brien builds a leprechaun transporter.ã___ Blue Wave/386 v2.30ãã---ã þ Synchronet þ Ninho do Abutre 2 BBS - Rio de Janeiro, Brazilã
  • From Digital Man@VERT to Mauro Veiga on Sat Aug 13 16:00:05 2016
    Re: Re: First-time scan pointã By: Mauro Veiga to DIGITAL MAN on Sat Aug 13 2016 06:28 pmãã > -=> Quoting Digital Man to Nightfox at 08-06-16 12:19 <=-ã >ã > Hello, Rob!ã >ã > DM> 1. If you have SCFG->System->New User Values->Days of New Messages setã > DM> to 0. 2. And a new user logs on for the first timeã >ã > DM> I think the default for "Days of New Messages" is not 0. Did youã > DM> change it? 0 is valid, but it means that a new user would see *no* newã > DM> messages when they first scan for new messages upon logging as asã > DM> "new". I just want to make sure you knew how that worked.ã >ã > >I have a message readerã > > mod I wrote in JavaScript, and it has had trouble accessing messages forã > > new users, seemingly due to that value of scan_ptr. I found that I canã > > check for that value and work around it, but I still wanted to let youã > > know in case that value is not by design.ã >ã > DM> Yes, it's by design. It was added in Nov-2015 with this commit:ã > DM> http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/userdat.c?r1=1.160ã > DM> &r2=1.16 1ã >ã > DM> ~0 (of a 32-bit integer) is short-hand for 0xffffffff.ã >ã > I'm using Sync 3.16c and not have Days of News Messages fieldã > on New User Values. How can i upgrade this?ããYou can upgrade to the daily development builds (sbbs_dev.zip for Windows).ãã digital manããSynchronet/BBS Terminology Definition #15:ãDOVE = Domain/VertrauenãNorco, CA WX: 92.1øF, 37.0% humidity, 8 mph SSE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Mauro Veiga@VERT/ABUTRE2 to DIGITAL MAN on Sun Aug 14 11:06:00 2016
    Quoting Digital Man to Mauro Veiga at 08-13-16 16:00 <=-ãã DM> Re: Re: First-time scan pointã DM> By: Mauro Veiga to DIGITAL MAN on Sat Aug 13 2016 06:28 pmã ã > -=> Quoting Digital Man to Nightfox at 08-06-16 12:19 <=-ã >ã > Hello, Rob!ã >ã > DM> 1. If you have SCFG->System->New User Values->Days of New Messages setã > DM> to 0. 2. And a new user logs on for the first timeã >ã > DM> I think the default for "Days of New Messages" is not 0. Did youã > DM> change it? 0 is valid, but it means that a new user would see *no* newã > DM> messages when they first scan for new messages upon logging as asã > DM> "new". I just want to make sure you knew how that worked.ã >ã > >I have a message readerã > > mod I wrote in JavaScript, and it has had trouble accessing messages forã > > new users, seemingly due to that value of scan_ptr. I found that I canã > > check for that value and work around it, but I still wanted to let youã > > know in case that value is not by design.ã >ã > DM> Yes, it's by design. It was added in Nov-2015 with this commit:ã > DM> http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/userdat.c?r1=1.160ã > DM> &r2=1.16 1ã >ã > DM> ~0 (of a 32-bit integer) is short-hand for 0xffffffff.ã >ã > I'm using Sync 3.16c and not have Days of News Messages fieldã > on New User Values. How can i upgrade this?ãã DM> You can upgrade to the daily development builds (sbbs_dev.zip forã DM> Windows). ã DM> digital manãã Thanks, Rob! Works fine here. :-)ããã []'sã ³ã ÄÄÄÄÄÄÄÄÄÄÄ Mauro R. Veiga Ä abutre.no-ip.org:2323 ÄÄÄÄÄÄÄÄ  ÄÄÄÄÄÄã ³ããMeSSaGe SiTTeR 1.00 - Full VersionãLive Long and Prosperãã... This is an airlock, Allow me to demonstrate - Worfã___ Blue Wave/386 v2.30ãã---ã þ Synchronet þ Ninho do Abutre 2 BBS - Rio de Janeiro, Brazilã