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ã