Re: A couple of questions
By: Digital Man to Nightfox on Tue Apr 09 2024 11:53 am
> i.e. in Synchronet (like WWIV before it), if you perform successive "new file
> scans" during the same "call" (logon), you'll see the same new files (unless
> any new files were uploaded during the call, and then you'd see them too).
> Synchronet has always worked this way:
> https://synchro.net/docs/user.html#NewFileScan
Correction to that document though:
"New File Scan (N)
N from the File Transfer prompt lists all new files uploaded since your last
logon."
The "since your last logon" part was actually changed to "since your last scan
during your last logon" at some point in SBBS v2.
Synchronet, internally, updates a value (sbbs_t::last_ns_time which is exposed
in JS as bbs.last_new_file_time) every time the user scans for new files. When
the user logs-off, that value is stored in the user's "last new file scan" field
(in JS, that's user.new_file_time). When the user logs back on, the
sbbs_t::ns_time (in JS, bbs.new_file_time) is set to the user.new_file_time, but
also may be adjusted by the user while online, and that value
(bbs.new_file_time) is what's used as the comparison date/time stamp to
determine what files are "new".
If you're writing your own "new file scan" mod, your mod would need to update
the bbs.last_new_file_time value to the current date/time every time a user
scans for new files. The storing of the last_new_file_time to the user's
'new_file_time' field/property is handled automatically by SBBS upon log-off.
--
digital man (rob)
Breaking Bad quote #28:
Gomey, got beat your pinata. - Hank Schrader
Norco, CA WX: 76.0°F, 16.0% humidity, 7 mph WNW wind, 0.00 inches rain/24hrs ---
SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|