• src/sbbs3/smbutil.c

    From rswindell@VERT to CVS commit on Mon Apr 30 12:02:00 2018
    src/sbbs3 smbutil.c 1.126 1.127
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv4120

    Modified Files:
    smbutil.c
    Log Message:
    maint(): don't truncate the .sid and .hash files to 0-bytes before writing their
    new contents,
    Instead truncate to the new length after writing the new contents. This should make the files more tolerant of "out of disk space" situations and reduce
    the risk of lost data (0-byte files) due to low/no free disk space.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Jul 8 11:38:00 2018
    src/sbbs3 smbutil.c 1.127 1.128
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv3657

    Modified Files:
    smbutil.c
    Log Message:
    Added support for referencing a message on the command-line with the
    'l' (list messages), 'x' (dump index), 'r' (read msgs), and 'v' (view msgs) commands by "days old", by specifying a negative number (in days).
    (e.g. "smbutil r-30" would read messages posted within the past 30 days).
    This was added to test the smb_getmsgidx_by_time() function, but has some
    value otherwise I suppose.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Oct 4 21:23:00 2018
    src/sbbs3 smbutil.c 1.128 1.129
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Allow the message number for the l/r/x/v commands to be specified as an
    actual message number (rather than a 1-based message index offset) by using #<number>, e.g. "smbutil r#3694" will read the message base starting at
    message number 3694, if it exists.

    Also documented the [-n] syntax for reading/listing messages less than
    n days old.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon Apr 1 10:58:00 2019
    src/sbbs3 smbutil.c 1.129 1.130
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    More detail in help for umask option (use leading 0 for octal).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Fri Jan 3 07:31:54 2020
    src/sbbs3 smbutil.c 1.131 1.132
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Add new command-line option:
    -r = display raw message body text (not MIME-decoded)



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Fri Apr 3 15:37:26 2020
    src/sbbs3 smbutil.c 1.132 1.133
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Strip Ctrl-A codes from body text before printing.
    Treat \n the same as \r (next msg cmd)when reading msgs.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Apr 29 19:36:33 2020
    src/sbbs3 smbutil.c 1.133 1.134
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv8217

    Modified Files:
    smbutil.c
    Log Message:
    Detect the charset used in the mesage body (ASCII, CP437, or UTF-8) and set the FIDOCHARSET header field appropriately.
    Detect UTF-8 in any of the viewable header fields and set the appropriate aux attribute flag.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Fri May 1 14:23:32 2020
    src/sbbs3 smbutil.c 1.134 1.135
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Resolve GCC warnings.
    Support the continue-on-error option (-C) with the -R (repair) command.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun May 24 13:40:34 2020
    src/sbbs3 smbutil.c 1.135 1.136
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv27737

    Modified Files:
    smbutil.c
    Log Message:
    Line up the "index record" value with the other header fields as displayed by smb_dump_msghdr().


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Fri Sep 25 21:32:04 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/8b9ad9404ea61764c8e38cb4
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Don't count vote/poll messages when purging to meet the maximum msgs setting

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sat Sep 26 09: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 enforcement
    during maintenance.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Thu Oct 8 13: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 ESC character (ASCII 27) with '.'. This could be made an optional behavior if someone 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).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Thu Oct 8 13: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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon May 10 13: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 commit

    The fread() usage here did not need "addressing" (Commit 1b56dc96).

    This caused messages posted via smbutil to be short (e.g. 0 or 1 bytes
    in length). Reported by Accession via Idle Relay Chat.

    Also, don't call strlen() on msgtxt which could be NULL, causing segfault
    in final printf() callin in postmsg().

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Jun 5 10: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 deletion

    The 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).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Jun 6 00:02:21 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/19975dfafd9041acaf6e3221
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Resolved sign/unsigned compare warning

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Feb 23 18:25:45 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/7be94765a4b73ecb93c97319
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Comment intentional case fall-through

    CID 33205

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tue Mar 1 17:43:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/2cd7d767f3e71cd522c73da1
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Zero-init 'ms'g' before use

    Addresses CID 350316

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tue Mar 1 17:43:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/831438fad7fb9cfcf4ec72c9
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Zero-init 'msg' before use

    Addresses CID 350312

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tue Mar 1 17:43:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/31864868ed05e82aa601f466
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Zero-init 'msg' before use

    CID 350279

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Mar 2 13:14:50 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/ecce2a8a402e7330486bf423
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Detect smb_fallocdat() and ftell() failures

    CID 33245

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Mar 2 13:14:50 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/9169e4aa90c65ce7d5bd8f2d
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Detect/report smb_fallochdr() and ftell() failures

    Fix CID 33244: Argument cannot be negative

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Mar 3 11:45:56 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/c40ef9243970d5228e7473ef
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Check for negative filelength() return values

    e.g. CID 229593: Negative loop bound

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Mar 12 16:09:16 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/07580ea7b1b6e204c4c5400b
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Display textual version of msg attributes when using 'r'ead command

    Also displays net and aux attribute values when non-zero (weren't displayed
    at all with the 'r'ead command previously).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Mar 12 18:21:15 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/4b5a75c3ae3f207e6cc71cbd
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Address warnings introduced in previous commit

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Mar 12 19:26:38 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/5ee74077200205a13bbbf60c
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Fix CID 350312: Uninitialized scalar variable

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net