Subj : First-time scan pointer value To : Digital Man From : Nightfox Date : 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 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 .