• src/sbbs3/smbutil.c

    From Rob Swindell@1:103/705 to Git commit to sbbs/master on Sat Sep 26 13:38:58 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/c018dfb88f45e97f2553764f
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Use smb_msg_type() to include poll messages in total message count.Don't exclude polls form the message count used for max_msgs enforcementduring maintenance.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to sbbs/master on Thu Oct 8 17:05:12 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/c4c9902d6e4f6ae87d9208c4
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Replace ESC chars with '.' when viewing messages, support '-<count>' with 'r'.When reading messages, circumvent ANSI-encoded messages by replacing the ESCcharacter (ASCII 27) with '.'. This could be made an optional behavior ifsomeone really wants ANSI-encoded messages to be read via smbutil.Also, allow continuous reading of 1 or more consecutive messages using the-<digit> option (no prompting).
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to sbbs/master on Thu Oct 8 17:28:32 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/2edad5267d61db01439d5396
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    <deon[m]> could be helpful if "l" (list) shows the index id needed as well
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Mon May 10 17:05:21 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/f92a14cd738c03df9505702e
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Fix issue with the import message commands introduced in previous commitThe fread() usage here did not need "addressing" (Commit 1b56dc96).This caused messages posted via smbutil to be short (e.g. 0 or 1 bytesin length). Reported by Accession via Idle Relay Chat.Also, don't call strlen() on msgtxt which could be NULL, causing segfaultin final printf() callin in postmsg().
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sat Jun 5 14:53:40 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/d653a6d97c48dc47819e399f
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Add new commands to flag/unflag all messages for deletionThe command to delete and remove all messages is changed from 'd' to 'D'.This operation is not reversable.New commands are 'd' (flag all msgs for deletion) and 'u' (undelete all msgs).
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jun 6 04:02:21 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/19975dfafd9041acaf6e3221
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Resolved sign/unsigned compare warning
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Thu Sep 24 21:22:49 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/893817954cb42bd437b8c796
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    smbutil pack: free the space of a message it drops

    When pack drops a message whose data it can't copy, or for which it can't allocate a header, the data space already allocated for it in the packed
    base was left allocated with nothing referencing it: blocks lost until the
    next pack. Both skip paths were added by aee485f478 (reducing-28-isle, 2026-09-15).

    Pack only appends to the new .sdt and .sda, so the dropped message's data
    is always the last allocation in each; pack_drop_dat() truncates both back
    to where it started. smb_freemsgdat() isn't usable mid-pack: it unlocks
    the SMB header pack holds, and it truncates smb.sdt_fp, which is the
    original data file being read.

    For data shared with an earlier index, the extra reference is now added
    only once the header is allocated, so a header failure leaves nothing to
    undo.

    Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Thu Oct 1 13:35:41 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/6c246751a34be47eb89716b4
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    smbutil: 'L' command leaves the message base lock file behind again

    Since bb6381902f (boots-19-reads, 2026-01-16), smb_close() removes the
    base's lock file whenever smb_t.is_locked is set. smbutil's 'L' command
    locks the base and then closes it, so the lock file it had just created
    was immediately deleted and 'L' did nothing. Clear is_locked after 'L'
    creates the lock, so the file stays until 'U' removes it.

    Reported by Nelgin (EOTLBBS) via DOVE-Net.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)