• exec/load/mailbox_summary.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Fri Nov 20 17:46:38 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/7845d4b8bc6d38e908f9d307
    Modified Files:
    exec/load/mailbox_summary.js
    Log Message:
    Mailbox library: date the private base's files after a write (#1374)

    After a change to a user's private mail base, the summary cache stores
    the date and size of the base's .shd and .sid files, taken while the
    base is still open. On a network file system (SMB, NFS) a write may
    show in a file's date only once the file is closed, so the stored date
    was the old one: the next request saw a "change" and read every header
    again.

    Summary.modify() now sets the date of both files to now (file_utime())
    after the write and before taking those stamps. Measured on a Samba
    share with a 12-message base: the get() after the library's own header
    change read 12 headers before and reads none now; on a local disk it
    read none either way.

    Only the private base is dated this way. Nothing but this library
    writes to it, which matters because on an SMB share a file whose date
    has been set stops being dated by later writes while it is open. The
    system mail base is left alone; doing the same in smblib for every
    writer is discussed in #1374.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net