• A couple of questions

    From nightfox@DIGDIST.remove-3sl-this@1:342/200 to All on Mon Apr 8 22:47:46 2024
    Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
    From: "Nightfox" <nightfox@DIGDIST.remove-3sl-this>
    Subject: A couple of questions
    Message-ID: <6614C872.85656.dove_sync@digitaldistortionbbs.com>
    X-Comment-To: Digital Man
    Organization: Digital Distortion
    Newsgroups: alt.bbs.synchronet
    In-Reply-To: <6614B32A.51552.sync@vert.synchro.net>
    References: <6614B32A.51552.sync@vert.synchro.net>
    X-FTN-PID: Synchronet 3.20a-Linux master/bf7728020 Apr 05 202 GCC 11.4.0 X-FTN-MSGID: 51563.sync@1:103/705 2a7ac952
    X-FTN-REPLY: 51552.sync@1:103/705 2a7ab28a
    X-FTN-CHRS: CP437 2
    WhenImported: 20240408214746-0700 c1e0
    WhenExported: 20240408215459-0700 c1e0
    ExportedFrom: DIGDIST dove_sync 85656
    Content-Type: text/plain; charset=IBM437
    Content-Transfer-Encoding: 8bit
    X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
    Lines: 19
    X-Complaints-To: https://www.astraweb.com/aup
    NNTP-Posting-Date: Tue, 09 Apr 2024 04:54:01 UTC
    Date: Mon, 8 Apr 2024 21:47:46 -0700
    X-Received-Bytes: 2212
    X-Original-Bytes: 2073
    Xref: news.eternal-september.org alt.bbs.synchronet:39189

    To: Digital Man
    Re: A couple of questions
    By: Digital Man to apam on Mon Apr 08 2024 08:16 pm

    1) How long do files stay "new"?

    I don't know about DD mods, but normally files are "new" when their upload date/time is newer than the user's last logoff time.

    I have my ddfilelister set up as a loadable module. When doing a new file scan, I've noticed my file lister is executed for each sub-board, and the sub-board code is passed in and the scan mode is passed in via argv. When doing a new file scan, I've been checking bbs.new_file_time. It seems I could set bbs.new_file_time to the current time when it's done, but that would mean when ddfilelister is executed for the next file directory, it won't list any new files because bbs.new_file_time would have been set to the current date/time.

    So, I don't know if it should be ddfilelister's responsibility to update bbs.new_file_time or not?

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    * Origin: Joe's BBS (1:342/200)
  • From digital.man@vert.synchro.net.remove@1:342/200 to All on Tue Apr 9 11:53:16 2024
    Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail
    From: "Digital Man" <digital.man@vert.synchro.net.remove-hl1-this>
    Subject: A couple of questions
    Message-ID: <6615808C.51566.sync@vert.synchro.net>
    X-Comment-To: Nightfox
    Organization: Vertrauen
    Newsgroups: alt.bbs.synchronet
    In-Reply-To: <6614C872.85656.dove_sync@digitaldistortionbbs.com>
    References: <6614C872.85656.dove_sync@digitaldistortionbbs.com>
    X-FTN-PID: Synchronet 3.20a-Win32 master/8108e0cd9 Apr 08 202 MSC 1916 X-FTN-MSGID: 51566.sync@1:103/705 2a7b7ffa
    X-FTN-REPLY: 51563.sync@1:103/705 2a7ac952
    Content-Type: text/plain; charset=IBM437
    Content-Transfer-Encoding: 8bit
    X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
    Lines: 33
    X-Complaints-To: https://www.astraweb.com/aup
    NNTP-Posting-Date: Tue, 09 Apr 2024 17:53:18 UTC
    Date: Tue, 9 Apr 2024 10:53:16 -0700
    X-Received-Bytes: 2481
    Xref: news.eternal-september.org alt.bbs.synchronet:39191

    To: Nightfox
    Re: A couple of questions
    By: Nightfox to Digital Man on Mon Apr 08 2024 09:47 pm

    Re: A couple of questions
    By: Digital Man to apam on Mon Apr 08 2024 08:16 pm

    1) How long do files stay "new"?

    I don't know about DD mods, but normally files are "new" when their upload date/time is newer than the user's last logoff time.

    I have my ddfilelister set up as a loadable module. When doing a new file scan, I've noticed my file lister is executed for each sub-board, and the sub-board code is passed in and the scan mode is passed in via argv. When doing a new file scan, I've been checking bbs.new_file_time. It seems I could set bbs.new_file_time to the current time when it's done, but that would mean when ddfilelister is executed for the next file directory, it won't list any new files because bbs.new_file_time would have been set to the current date/time.

    So, I don't know if it should be ddfilelister's responsibility to update bbs.new_file_time or not?

    No, it is not your module's responsibility to update bbs.new_file_time.
    --
    digital man (rob)

    Synchronet "Real Fact" #86:
    Stephen and Rob have a fledgling podcast at http://techdorks.net (also iTunes) Norco, CA WX: 72.4°F, 18.0% humidity, 7 mph W 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)
  • From nightfox@DIGDIST.remove-n0g-this@1:342/200 to All on Tue Apr 9 12:15:54 2024
    Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
    From: "Nightfox" <nightfox@DIGDIST.remove-n0g-this>
    Subject: A couple of questions
    Message-ID: <661585D9.85660.dove_sync@digitaldistortionbbs.com>
    X-Comment-To: Digital Man
    Organization: Digital Distortion
    Newsgroups: alt.bbs.synchronet
    In-Reply-To: <6615808C.51566.sync@vert.synchro.net>
    References: <6615808C.51566.sync@vert.synchro.net>
    X-FTN-PID: Synchronet 3.20a-Linux master/bf7728020 Apr 05 202 GCC 11.4.0 X-FTN-MSGID: 51568.sync@1:103/705 2a7b8731
    X-FTN-REPLY: 51566.sync@1:103/705 2a7b7ffa
    X-FTN-CHRS: CP437 2
    WhenImported: 20240409111553-0700 c1e0
    WhenExported: 20240409112464-0700 c1e0
    ExportedFrom: DIGDIST dove_sync 85660
    Content-Type: text/plain; charset=IBM437
    Content-Transfer-Encoding: 8bit
    X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
    Lines: 14
    X-Complaints-To: https://www.astraweb.com/aup
    NNTP-Posting-Date: Tue, 09 Apr 2024 18:24:02 UTC
    Date: Tue, 9 Apr 2024 11:15:53 -0700
    X-Received-Bytes: 1899
    Xref: news.eternal-september.org alt.bbs.synchronet:39193

    To: Digital Man
    Re: A couple of questions
    By: Digital Man to Nightfox on Tue Apr 09 2024 10:53 am

    No, it is not your module's responsibility to update bbs.new_file_time.

    With ddfilelister set up as a loadable module, it seems bbs.new_file_time isn't being updated when I do a new file scan. As a test, I tried setting my new file scan pointer back to January 1, 2024 (to make sure it was at an earlier time), and did a couple of new file scans in my current directory. ddfilelister prints bbs.new_file_time, and both times, it showed the January 1, 2024 date I had set and listed the same files.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    * Origin: Joe's BBS (1:342/200)
  • From digital.man@vert.synchro.net.remove@1:342/200 to All on Tue Apr 9 12:53:04 2024
    Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
    From: "Digital Man" <digital.man@vert.synchro.net.remove-d2s-this>
    Subject: A couple of questions
    Message-ID: <66158E90.51569.sync@vert.synchro.net>
    X-Comment-To: Nightfox
    Organization: Vertrauen
    Newsgroups: alt.bbs.synchronet
    In-Reply-To: <661585D9.85660.dove_sync@digitaldistortionbbs.com>
    References: <661585D9.85660.dove_sync@digitaldistortionbbs.com>
    X-FTN-PID: Synchronet 3.20a-Win32 master/8108e0cd9 Apr 08 202 MSC 1916 X-FTN-MSGID: 51569.sync@1:103/705 2a7b8e01
    X-FTN-REPLY: 51568.sync@1:103/705 2a7b8731
    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 18:53:07 UTC
    Date: Tue, 9 Apr 2024 11:53:04 -0700
    X-Received-Bytes: 2479
    Xref: news.eternal-september.org alt.bbs.synchronet:39194

    To: Nightfox
    Re: A couple of questions
    By: Nightfox to Digital Man on Tue Apr 09 2024 11:15 am

    Re: A couple of questions
    By: Digital Man to Nightfox on Tue Apr 09 2024 10:53 am

    No, it is not your module's responsibility to update bbs.new_file_time.

    With ddfilelister set up as a loadable module, it seems bbs.new_file_time isn't being updated when I do a new file scan. As a test, I tried setting my new file scan pointer back to January 1, 2024 (to make sure it was at an earlier time), and did a couple of new file scans in my current directory. ddfilelister prints bbs.new_file_time, and both times, it showed the January 1, 2024 date I had set and listed the same files.

    That sounds like correct behavior to me. The new file date/time is set during logon (by sbbs) only. The user normally has the option to adjust it (the &P command in the default shell).

    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
    --
    digital man (rob)

    This Is Spinal Tap quote #38:
    Artie Fufkin: I'm not asking, I'm telling with this. Kick my ass.
    Norco, CA WX: 74.4°F, 17.0% humidity, 3 mph E 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)
  • From digital.man@vert.synchro.net.remove@1:342/200 to All on Tue Apr 9 13:19:14 2024
    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" <digital.man@vert.synchro.net.remove-3d1-this>
    Subject: A couple of questions
    Message-ID: <661594B2.51571.sync@vert.synchro.net>
    X-Comment-To: Nightfox
    Organization: Vertrauen
    Newsgroups: alt.bbs.synchronet
    In-Reply-To: <66158E90.51569.sync@vert.synchro.net>
    References: <66158E90.51569.sync@vert.synchro.net>
    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)
  • From nightfox@DIGDIST.remove-gv6-this@1:342/200 to All on Tue Apr 9 13:54:18 2024
    Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx12.iad.POSTED!not-for-mail
    From: "Nightfox" <nightfox@DIGDIST.remove-gv6-this>
    Subject: A couple of questions
    Message-ID: <66159CEA.85667.dove_sync@digitaldistortionbbs.com>
    X-Comment-To: apam
    Organization: Digital Distortion
    Newsgroups: alt.bbs.synchronet
    In-Reply-To: <6614AAC8.124.dove-syncdisc@happylnd.synchro.net>
    References: <6614AAC8.124.dove-syncdisc@happylnd.synchro.net>
    X-FTN-PID: Synchronet 3.20a-Linux master/bf7728020 Apr 05 202 GCC 11.4.0 X-FTN-MSGID: 51574.sync@1:103/705 2a7b9d82
    X-FTN-REPLY: 51550.sync@1:103/705 2a7aac4d
    X-FTN-CHRS: CP437 2
    WhenImported: 20240409125418-0700 c1e0
    WhenExported: 20240409130009-0700 c1e0
    ExportedFrom: DIGDIST dove_sync 85667
    Content-Type: text/plain; charset=IBM437
    Content-Transfer-Encoding: 8bit
    X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
    Lines: 17
    X-Complaints-To: https://www.astraweb.com/aup
    NNTP-Posting-Date: Tue, 09 Apr 2024 19:59:09 UTC
    Date: Tue, 9 Apr 2024 12:54:18 -0700
    X-Received-Bytes: 1826
    Xref: news.eternal-september.org alt.bbs.synchronet:39197

    To: apam
    Re: A couple of questions
    By: apam to All on Tue Apr 09 2024 12:41 pm

    1) How long do files stay "new"?

    I'm doing a new scan each day since i started and it appears to show my all the files in my file base each time.

    I made a fix to DDFileLister so that it will do the new file scan when used as a loadable module (it was just listing files). You can update when my fix gets merged into the git repository. And as Digital Man said, new files will no longer be "new" after you log off.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    * Origin: Joe's BBS (1:342/200)