Subj : last_read and scan_ptr values
To   : Digital Man
From : Nightfox
Date : Sat Mar 28 2015 09:17 am

 Re: last_read and scan_ptr values
 By: Nightfox to Digital Man on Fri Mar 27 2015 22:49:47

Ni> If a new message is posted in a sub-board and that's the only message in
Ni> the sub-board, it seems that scan_ptr and last_read would point to that
Ni> message (is that correct?). If the currently logged-in user reads that
Ni> message, then scan_ptr and last_read would remain unchanged since that's
Ni> the only message in the sub-board. During a newscan, how can a JavaScript
Ni> script determine whether the user has read that message (even if it wasn't
Ni> written to the user - so the MSG_READ attribute wouldn't be set)?

I've done a little bit more testing this morning, and now I'm wondering if 0 is
a meaningful value for scan_ptr?  If I post a new message in an empty
sub-board, it seems that the scan_ptr value for that sub-board is 0 until I
read the message I posted.  A related question is, will a message number (the
'number' property in a message header) ever be 0?

Nightfox

---
� Synchronet � Digital Distortion BBS - digitaldistortionbbs.com