Subj : scan_ptr and 0xffffffff
To : Digital Man
From : Nightfox
Date : Mon Aug 12 2024 10:35 am
Re: scan_ptr and 0xffffffff
By: Digital Man to Nightfox on Sun Aug 11 2024 02:35 pm
>> Quite a while ago, I noticed that the value of scan_ptr in a sub-board can
>> be 0xffffffff - most often, it seemed that was the case for a new user. I
>> have in one of my comments that that value indicates that scan_ptr should
>> point to the latest message in the messagebase - is that correct?
DM> Correct, but only temporarily (for that first logon).
>> the latest message. Is it expected that a new user should see no new
>> messages if they do a newscan right after creating their account?
DM> That depends on the sysop's setting of SCFG->System->New User Values->Days
DM> of New Messages. When set to 0 (days), the scan pointer would be
DM> initialized to 0xffffffff during the logon and correctly set to the last
DM> message number in each base upon log-off.
>> And I'm wondering
>> if the behavior for a message reader should be that if it sees scan_ptr is
>> that value, then set it to the latest message number in the messagebase?
DM> A message reader should just treat the base as "already read" in that case
DM> (no new messages).
Thanks for your reply. I'll need to update DDMsgReader so that it behaves accordingly.
Nightfox
---
� Synchronet � Digital Distortion: digitaldistortionbbs.com