Subj : A couple of questions
To : All
From :
[email protected]
Date : Tue Apr 09 2024 01:19 pm
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!tncsrv06.tnetconsulting.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail
From: "Digital Man" <
[email protected]>
Subject: A couple of questions
Message-ID: <
[email protected]>
X-Comment-To: Nightfox
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <
[email protected]>
References: <
[email protected]>
X-FTN-PID: Synchronet 3.20a-Win32 master/8108e0cd9 Apr 08 202 MSC 1916
X-FTN-MSGID: 51571.sync@1:103/705 2a7b9425
X-FTN-REPLY: 51569.sync@1:103/705 2a7b8e01
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 28
X-Complaints-To:
https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 09 Apr 2024 19:19:17 UTC
Date: Tue, 9 Apr 2024 12:19:14 -0700
X-Received-Bytes: 2763
Xref: news.eternal-september.org alt.bbs.synchronet:39196
To: Nightfox
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
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net
* Origin: Joe's BBS (1:342/200)