• src/sbbs3/smbutil.c

    From rswindell@1:103/705 to CVS commit on Tue Feb 20 19:38:47 2018
    src/sbbs3 smbutil.c 1.117 1.118
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Allow the default umask (typically 022) to be overridden with the new
    -U (capital 'U') command-line option (e.g. '-U0' or '-U2' or '-U077').


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Thu Feb 22 14:51:21 2018
    src/sbbs3 smbutil.c 1.118 1.119
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv20948

    Modified Files:
    smbutil.c
    Log Message:
    When configuring a message base (changing values in the "status header'),
    allow the "last_msg" value to be changed as well.
    When dumping a msgbase index, show 'M' for messages (not blank).
    When running maintenance, read the entire index in one shot.
    Don't display progress (percentage counting) during maintenance (just
    slows it down).
    When reading messages, get the plain-text version (MIME decode if needed).
    When a message base fails to open, continue processing additional message bases if specified on the command-line.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Thu Feb 22 15:07:27 2018
    src/sbbs3 smbutil.c 1.119 1.120
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv22677

    Modified Files:
    smbutil.c
    Log Message:
    Added new commands:
    L (capital 'L'): Lock a message base
    U (capital 'U'): Unlock a message base

    These commands maybe used to insure that a message base is not modified while being backed-up (but don't forget to unlock them when you're done!).

    Also note: if you back up all the files (including *.lock), then the backed-up message bases will also be locked and will need to be unlocked (i.e. *.lock removed) before they may be used again if/when restored.

    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sun Mar 4 13:06:02 2018
    src/sbbs3 smbutil.c 1.120 1.121
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv26312

    Modified Files:
    smbutil.c
    Log Message:
    Re-lock the msg base in packmsgs() when re-opening (to set status header),
    so that the smb_unlock() in main() doesn't fail and display the harmless
    error:
    Error -207 (smb_unlock 2 'No such file or directory' removing mail.lock) unlocking mail


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Thu Mar 8 19:54:13 2018
    src/sbbs3 smbutil.c 1.121 1.122
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Output a status line when a messages is imported/added to a msgbase.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Fri Mar 9 23:17:47 2018
    src/sbbs3 smbutil.c 1.123 1.124
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv25272

    Modified Files:
    smbutil.c
    Log Message:
    Fix last Clang warning.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Mar 12 23:22:54 2018
    src/sbbs3 smbutil.c 1.124 1.125
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Fix bug introduced in rev 1.119: When reading in the msgbase index
    (.sid file), don't divide the fread() results (it's already in number of records read). This could cause msgbase maintenance to not take place
    or corruption of a msg base.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Tue Mar 13 22:41:41 2018
    src/sbbs3 smbutil.c 1.125 1.126
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv20348

    Modified Files:
    smbutil.c
    Log Message:
    Use smb_hfield_netaddr() to properly support FidoNet netmail via the 'n' (import netmail) command along with the '-n' option to set the recipient
    net address (and network type). Previously, only Internet or QWK netmail
    was supported.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Apr 30 16:02:14 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.

    --- SBBSecho 3.04-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sun Jul 8 15:38:22 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.

    --- SBBSecho 3.05-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Fri Oct 5 01:23:33 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.


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Apr 1 14:58:15 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).


    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Fri Jan 3 12: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)


    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Fri Apr 3 19: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.


    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Apr 29 23: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.

    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Fri May 1 18: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.



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sun May 24 17: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().

    --- 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 Sat Sep 26 01: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 --- 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 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@1:103/705 to Git commit to main/sbbs/master on Wed Feb 23 23:25:45 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/7be94765a4b73ecb93c97319
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Comment intentional case fall-throughCID 33205
    --- 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 Tue Mar 1 22:43:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/2cd7d767f3e71cd522c73da1
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Zero-init 'ms'g' before useAddresses CID 350316
    --- SBBSecho 3.15-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 Tue Mar 1 22:43:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/831438fad7fb9cfcf4ec72c9
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Zero-init 'msg' before useAddresses CID 350312
    --- SBBSecho 3.15-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 Tue Mar 1 22:43:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/31864868ed05e82aa601f466
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Zero-init 'msg' before useCID 350279
    --- SBBSecho 3.15-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 Wed Mar 2 18:14:50 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/ecce2a8a402e7330486bf423
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Detect smb_fallocdat() and ftell() failuresCID 33245
    --- SBBSecho 3.15-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 Wed Mar 2 18: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() failuresFix CID 33244: Argument cannot be negative
    --- SBBSecho 3.15-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 Thu Mar 3 16:45:56 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/c40ef9243970d5228e7473ef
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Check for negative filelength() return valuese.g. CID 229593: Negative loop bound
    --- SBBSecho 3.15-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 Mar 12 21: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 commandAlso displays net and aux attribute values when non-zero (weren't displayedat all with the 'r'ead command previously).
    --- SBBSecho 3.15-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 Mar 12 23: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
    --- SBBSecho 3.15-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 Mar 13 00: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
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)