• src/sbbs3/smbutil.c

    From rswindell@VERT to CVS commit on Tue Sep 17 03:27:25 2013
    src/sbbs3 smbutil.c 1.103 1.104
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv25498

    Modified Files:
    smbutil.c
    Log Message:
    A little more helpful status output for maintenance (about msgs flagged for deletion by the maintenance process).

    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Thu Mar 20 00:38:39 2014
    src/sbbs3 smbutil.c 1.104 1.105
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv6941

    Modified Files:
    smbutil.c
    Log Message:
    Truncate *.hash files during maintenance to accomodate max-msgs or max-crcs number of hash sets (don't let these files grow indefinitely).

    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Mon Aug 25 18:59:25 2014
    src/sbbs3 smbutil.c 1.105 1.106
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv28164

    Modified Files:
    smbutil.c
    Log Message:
    Use the specified 'from' extension (number, specified with the -e option) for posted messages, not just email/netmail.

    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Fri Aug 21 23:30:15 2015
    src/sbbs3 smbutil.c 1.106 1.107
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv29670

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



    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sun Dec 6 03:13:47 2015
    src/sbbs3 smbutil.c 1.107 1.108
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv26693

    Modified Files:
    smbutil.c
    Log Message:
    smbutil V (capital 'v') now output more verbose header data than v (lower-case) All other command options remain case insensitive.

    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Fri Nov 11 01:54:48 2016
    src/sbbs3 smbutil.c 1.108 1.109
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv24829

    Modified Files:
    smbutil.c
    Log Message:
    Update dump-index ('x' command) output, primarily to handle vote 'messages' correctly.

    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Nov 15 21:33:35 2016
    src/sbbs3 smbutil.c 1.109 1.110
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv23265

    Modified Files:
    smbutil.c
    Log Message:
    smb msg.hdr->vote is now msg.hdr->votes (plural).

    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Wed Nov 16 01:08:59 2016
    src/sbbs3 smbutil.c 1.110 1.111
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv29938

    Modified Files:
    smbutil.c
    Log Message:
    Handlel poll messages correctly in dumpindex().
    Fixed printf() arguments.

    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Mon Nov 21 02:04:57 2016
    src/sbbs3 smbutil.c 1.111 1.112
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv24724

    Modified Files:
    smbutil.c
    Log Message:
    Handle poll-closures correclty when dumping the index file.

    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Wed Nov 23 19:05:26 2016
    src/sbbs3 smbutil.c 1.112 1.113
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Bug-fix: pack/maintenance would create invalid index CRCs if the 'to' or
    'from' fields were > 127 chars in length. Now using smb_init_idx() since it does the "right thing".


    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Wed Nov 15 22:13:21 2017
    src/sbbs3 smbutil.c 1.113 1.114
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Don't "manage the HASH file" unless either max_msgs or max_crcs is set
    (if both are zero, that implies infinite hash storage - why not).
    Display message attr value in the 'r'ead mode.
    Added 'D'elete message (toggle Delete attribute) in 'r'ead mode.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Nov 16 01:41:04 2017
    src/sbbs3 smbutil.c 1.114 1.115
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Generate an RFC822 (generic) Message-ID header field when importing msgs
    (using -i). These aren't quite as good as the IDs we can generate when we
    have access to the BBS configuration (scfg_t), but it's decently unique and identifiable.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Fri Nov 24 17:30:50 2017
    src/sbbs3 smbutil.c 1.115 1.116
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    smbutil v2.34:
    - Added 'R' (capital 'R') command, which can be used to repair a corrupted
    "SMB header" and status header in the *.shd file. The status header
    fields "max_msgs", "max_crcs", and "max_age" are not recovered (just
    initialized to 0) since we don't have those configuration settings in
    smbutil. Modifying the base configuration in SCFG and saving changes
    will recover those values.
    - Added '-C' (capital 'C') option: to continue to open a msg base even when
    some forms of SMB header corruption are detected. This option may be used
    in combination with some commands (e.g. 'c' and 'R') to recover a
    corrupted message base.

    Command-line options were previously not case-sensistive (all options were treated the same regardless of letter case) - now, most options are still treated the same regardless of case, but newer options will be redefining
    the uppercase equivalent (e.g. '-C' is now not the same as '-c').


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Fri Nov 24 17:38:28 2017
    src/sbbs3 smbutil.c 1.116 1.117
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Don't show the new status header values as part of the 'R' command.
    A good way to use the 'R' command woud be:
    "smbutil -C Rcs <base>" which tells smbutil to:
    -continue on error opening the msg base (e.g. corruption)
    -re-init the SMB/status headers
    -change/config the status header values (e.g. max msgs, crcs, age)
    -show the status header


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Accession@VERT/PHARCYDE to rswindell on Sat Nov 25 10:17:54 2017
    Hello rswindell,

    On Fri Nov 24 2017 17:38:28, rswindell wrote to CVS commit:

    src/sbbs3 smbutil.c 1.116 1.117
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Don't show the new status header values as part of the 'R' command.
    A good way to use the 'R' command woud be:
    "smbutil -C Rcs <base>" which tells smbutil to:
    -continue on error opening the msg base (e.g. corruption)
    -re-init the SMB/status headers
    -change/config the status header values (e.g. max msgs, crcs, age)
    -show the status header

    Were the last three commits addressing the issue I emailed you with (ie: smbutil stopping on some of these errors (seemlingly broken headers coming from
    other systems via echomail) and unfixable via fixsmb)? Looks like it would, but
    I'm just making sure.

    And if so, thanks for looking into it! ;)

    Regards,
    Nick

    ... "Не знаю. Я здесь только работаю."
    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: thePharcyde_ distribution system (Wisconsin) (723:1/1)
    Synchronet thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)
  • From Digital Man@VERT to Accession on Sat Nov 25 13:47:57 2017
    Re: src/sbbs3/smbutil.c
    By: Accession to rswindell on Sat Nov 25 2017 10:17 am

    Hello rswindell,

    On Fri Nov 24 2017 17:38:28, rswindell wrote to CVS commit:

    src/sbbs3 smbutil.c 1.116 1.117
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    smbutil.c
    Log Message:
    Don't show the new status header values as part of the 'R' command.
    A good way to use the 'R' command woud be:
    "smbutil -C Rcs <base>" which tells smbutil to:
    -continue on error opening the msg base (e.g. corruption)
    -re-init the SMB/status headers
    -change/config the status header values (e.g. max msgs, crcs, age) -show the status header

    Were the last three commits addressing the issue I emailed you with (ie: smbutil stopping on some of these errors (seemlingly broken headers coming from
    other systems via echomail) and unfixable via fixsmb)? Looks like it would, but
    I'm just making sure.

    And if so, thanks for looking into it! ;)

    You could recover that message base using the "smbutil -C R" command, now. But that it doesn't explain how the terminal output ended up in your message base file to begin with. Did you see my email reply and follow-up questions?

    digital man

    Synchronet/BBS Terminology Definition #3:
    ASCII = American Standard Code for Information Interchange
    Norco, CA WX: 67.0F, 43.0% humidity, 0 mph SSW wind, 0.00 inches rain/24hrs ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Accession@VERT/PHARCYDE to Digital Man on Sat Nov 25 17:23:26 2017
    Hello Digital,

    On Sat Nov 25 2017 13:47:56, Digital Man wrote to Accession:

    And if so, thanks for looking into it! ;)

    You could recover that message base using the "smbutil -C R" command,
    now. But that it doesn't explain how the terminal output ended up in
    your message base file to begin with. Did you see my email reply and follow-up questions?

    I did (and replied) now that I knew to check for it in my spam folder. Hopefully now that I've marked emails from you as "not junk" that won't happen again. ;)

    Regards,
    Nick

    ... "Не знаю. Я здесь только работаю."
    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: thePharcyde_ distribution system (Wisconsin) (723:1/1)
    Synchronet thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)
  • From Digital Man@VERT to Accession on Sat Nov 25 19:38:48 2017
    Re: src/sbbs3/smbutil.c
    By: Accession to Digital Man on Sat Nov 25 2017 05:23 pm

    Hello Digital,

    On Sat Nov 25 2017 13:47:56, Digital Man wrote to Accession:

    And if so, thanks for looking into it! ;)

    You could recover that message base using the "smbutil -C R" command, now. But that it doesn't explain how the terminal output ended up in your message base file to begin with. Did you see my email reply and follow-up questions?

    I did (and replied) now that I knew to check for it in my spam folder. Hopefully now that I've marked emails from you as "not junk" that won't happen again. ;)

    Okay, cool. No problem.

    digital man

    Synchronet/BBS Terminology Definition #11:
    DCD = Data Carrier Detect
    Norco, CA WX: 67.0F, 43.0% humidity, 0 mph SSW wind, 0.00 inches rain/24hrs ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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').


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From deuce@VERT 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.



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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).


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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)


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.


    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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().

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT 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 ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT 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 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 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 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 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
    ---
    ■ 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 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 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 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 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 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
    ---
    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 23: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 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 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 22: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 22: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 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() 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 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() 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 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 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 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 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 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
    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT 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
    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Jun 3 22:23:12 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/e995ce203f25446e1208afef
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Add test command 'Z' for locking an SMB header until keypress

    Just for testing/experimenting with proper recording locking support. e.g.
    when one process or network node (on a LAN) has the SMB header locked, another process/node should not be able to lock it or reading the status header.
    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Mon Jun 17 20:38:51 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/c8f60b06ba46058e2c3a367e
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Make filebase status output less confusing ("file" not "msg")

    Cosmetic change only, output of 'smbutil s' command when used on a filebase.

    Increment the SMBUTIL version from 3.19 to 3.20
    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Sep 9 18:29:23 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/d84b8e3d6c917620ab0c8a3c
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Indicate vote/poll messages and files (with details) when listing msgs/files

    Add '-v' (increase verbosity) option, used to display msg dates and timezones ... when using the the 'l' (list messages) command (to view post date/time). Use '-vv' or '-v -v' to see timezones of messages.

    The -v option is now also applicable to the 'v' (view) messages command (now redundant with the 'V' command).

    Features as requested by Nelgin as part of issue #786.

    Removed day-of-week from date/times displayed. We don't need that level of user-friendliness with this tool.
    However, we are also displaying 12h/am/pm times. Some sysops probably would prefer 24hour time, so that should be considered at some point.
    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Tue Sep 17 12:06:15 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/daa1b7882234d005c0b2a3ea
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    NUL-terminate the SMB fileidxrec_t.name field, just in case

    The terminating NUL is actually part of the index record, but with file corruption, it's technically possible the NUL could be missing.

    Fixes CID 509554
    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tue Apr 8 20:35:46 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/d647587cc433e3202354734e
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Use 7 (hex) digits for byte offset (into shd file)

    Vert's mail base .shd file is consistently > 0xFFFFFF bytes in size.
    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net