• last_read and scan_ptr values

    From Nightfox@VERT/DIGDIST to Digital Man on Wed Mar 25 21:39:55 2015
    Hi DM,ããIn the msg_area.grp_list.sub_list array, when should the scan_ptr and last_readãvalues be updated for a sub-board? For instance, when simply reading messagesã(i.e., not doing a newscan), would both of those be updated or would onlyãlast_read be updated? And conversely, when reading messages during a newscan,ãwould only the scan_ptr value be updated, or would both scan_ptr and last_readãbe updated?ããAlso, it looks like there's a typo in the Synchronet JS documentation atãhttp://www.synchro.net/docs/jsobjs.html - Under the "msg_area.grp_list.sub_listãarray" section, the last row in the table has "lead_read" - I believe thatãshould be "last_read"?ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Digital Man@VERT to Nightfox on Thu Mar 26 21:55:01 2015
    Re: last_read and scan_ptr valuesã By: Nightfox to Digital Man on Wed Mar 25 2015 09:39 pmãã > Hi DM,ã >ã > In the msg_area.grp_list.sub_list array, when should the scan_ptr andã > last_read values be updated for a sub-board? For instance, when simplyã > reading messages (i.e., not doing a newscan), would both of those be updatedã > or would only last_read be updated? And conversely, when reading messagesã > during a newscan, would only the scan_ptr value be updated, or would bothã > scan_ptr and last_read be updated?ããAny time the currently displayed message number is greater than the current ãscan_ptr, the scan_ptr should be updated. For every message displayed, the ãlast_read should be updated. These apply regardless of the method of message ãreading/scanning.ãã > Also, it looks like there's a typo in the Synchronet JS documentation atã > http://www.synchro.net/docs/jsobjs.html - Under theã > "msg_area.grp_list.sub_list array" section, the last row in the table hasã > "lead_read" - I believe that should be "last_read"?ããYeah, that was fixed quite a while ago but the jsobjs.html hasn't be ãre-generated since then. Thanks,ãã digital manããSynchronet "Real Fact" #3:ãSynchronet version 3 is written mostly in C, with some C++, x86 ASM, and Pascal.ãNorco, CA WX: 75.0øF, 26.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri Mar 27 07:33:30 2015
    Re: last_read and scan_ptr valuesã By: Digital Man to Nightfox on Thu Mar 26 2015 21:55:01ãã DM> Any time the currently displayed message number is greater than theã DM> current scan_ptr, the scan_ptr should be updated. For every messageã DM> displayed, the last_read should be updated. These apply regardless of theã DM> method of message reading/scanning.ããOK, thanks.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri Mar 27 22:49:47 2015
    Re: last_read and scan_ptr valuesã By: Digital Man to Nightfox on Thu Mar 26 2015 21:55:01ããIf a new message is posted in a sub-board and that's the only message in theãsub-board, it seems that scan_ptr and last_read would point to that message (isãthat correct?). If the currently logged-in user reads that message, thenãscan_ptr and last_read would remain unchanged since that's the only message inãthe sub-board. During a newscan, how can a JavaScript script determine whetherãthe user has read that message (even if it wasn't written to the user - so theãMSG_READ attribute wouldn't be set)?ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Nightfox@VERT/DIGDIST to Digital Man on Sat Mar 28 09:17:20 2015
    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ã
  • From Digital Man@VERT to Nightfox on Sun Mar 29 23:45:10 2015
    Re: last_read and scan_ptr valuesã By: Nightfox to Digital Man on Fri Mar 27 2015 10:49 pmãã > Re: last_read and scan_ptr valuesã > By: Digital Man to Nightfox on Thu Mar 26 2015 21:55:01ã >ã > If a new message is posted in a sub-board and that's the only message in theã > sub-board, it seems that scan_ptr and last_read would point to that messageã > (is that correct?).ããPosting a message does not modify either the user's scan_ptr or last_read ãvalues. Only reading messages modifies those values.ãã > If the currently logged-in user reads that message,ã > then scan_ptr and last_read would remain unchanged since that's the onlyã > message in the sub-board.ããNo, if the user has never read messages on a sub-board, then their scan_ptr and ãlast_read values would be 0 (no message).ãã > During a newscan, how can a JavaScript scriptã > determine whether the user has read that message (even if it wasn't writtenã > to the user - so the MSG_READ attribute wouldn't be set)?ããThe MSG_READ attribute should be set anytime a user reads a message addressed ãto them and the attribute is not already set. You don't need to check any ãpointers for that. You can see how Synchronet checks/sets the MSG_READ ãattribute by searching for MSG_READ in: ãhttp://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/readmsgs.cppãã digital manããSynchronet "Real Fact" #65:ãSynchronet was conceived of and mostly developed in southern California.ãNorco, CA WX: 61.1øF, 81.0% humidity, 2 mph SSE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Nightfox on Sun Mar 29 23:47:08 2015
    Re: last_read and scan_ptr valuesã By: Nightfox to Digital Man on 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ã > Ni> in the sub-board, it seems that scan_ptr and last_read would point toã > Ni> that message (is that correct?). If the currently logged-in user readsã > Ni> that message, then scan_ptr and last_read would remain unchanged sinceã > Ni> that's the only message in the sub-board. During a newscan, how can aã > Ni> JavaScript script determine whether the user has read that messageã > Ni> (even if it wasn't written to the user - so the MSG_READ attributeã > Ni> 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.ããCorrect. Posting a message does not change any message pointers and the initial ãpointer value will be 0 (no message).ãã > A related question is, will a message numberã > (the 'number' property in a message header) ever be 0?ããNo. 0 is a special value indicating "no message". You can read about SMB ãmessage numbers here: http://synchro.net/docs/smb.html#Index File (*.SID)ãã digital manããSynchronet "Real Fact" #28:ãRob Swindell first called BBSes (at 300bps) with an Apple II computer in 1982.ãNorco, CA WX: 61.1øF, 81.0% humidity, 2 mph SSE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nightfox@VERT/DIGDIST to Digital Man on Mon Mar 30 10:10:26 2015
    If a new message is posted in a sub-board and that's the onlyã > > Ni> message in the sub-board, it seems that scan_ptr and last_readã > > Ni> would point to that message (is that correct?). If the ãcurrentlyã > > Ni> logged-in user reads that message, then scan_ptr and last_readã > > Ni> would remain unchanged since that's the only message in theã > > Ni> sub-board. During a newscan, how can a JavaScript script ãdetermineã > > Ni> whether the user has read that message (even if it wasn't ãwrittenã > > Ni> 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.ã > ã > Correct. Posting a message does not change any message pointers and theã > initial pointer value will be 0 (no message).ã > ã > > A related question is, will a message numberã > > (the 'number' property in a message header) ever be 0?ã > ã > No. 0 is a special value indicating "no message". You can read about SMBã > message numbers here: http://synchro.net/docs/smb.html#Index File ã(*.SID)ããThanks - This confirms what I was wondering.ããI understand that posting won't modify those pointers; maybe my question couldãhave been worded better in regards to that - I was referring to doing aãnewscan after a new message had been posted by another user (and on my BBS, Iãwas testing a situation where a sub-board only has one message in it).ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
  • From Ragnarok@VERT/DOCKSUD to Digital Man on Tue Mar 31 00:28:32 2015
    El 27/03/15 a las 01:55, "Digital Man" escibió:ãã> ã> Yeah, that was fixed quite a while ago but the jsobjs.html hasn't be ã> re-generated since then. Thanks,ã> ã> digital manãI don't remember exactly now why, but i know that i could not regenerateãjsobs.html from source code. I had a wrong html output:ããhttp://bbs.docksud.com.ar/tmp/jsobjs.htmlãã---ã þ Synchronet þ Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.arã