- 05 Jun, 2021 1 commit
-
-
Rob Swindell authored
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).
-
- 11 May, 2021 1 commit
-
-
Rob Swindell authored
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().
-
- 04 Apr, 2021 2 commits
-
-
Rob Swindell authored
Reported by Coverity-scan (e.g. CID 33038).
-
Rob Swindell authored
This won't impact Synchronet as it has a separate signal handling thread, but we still need to behave properly for processes that don't. I'm also saying that ENOMEM does not indicate a disconnection, though it may be better to pretend it was disconnected...
-
- 15 Feb, 2021 2 commits
-
-
Rob Swindell authored
Hopefully not introducing any bugs in the process.
-
Rob Swindell authored
Hopefully not introducing any bugs in the process.
-
- 23 Nov, 2020 1 commit
-
-
Rob Swindell authored
The goal of this commit is that: only modules that either are part-of sbbs.dll/libsbbs.so or need to link with/use that library, will #include "sbbs.h" and thus be dependent on its subsequent includes (e.g. cryptlib.h, jsapi.h). This should mean extdeps.mk can be trimmed way down. I also removed CVS keyword/comments and trimmed up the boilerplate copyright notice in modified and added source/header files in this commit. There is no functional change in behavior in this comment.
-
- 06 Nov, 2020 1 commit
-
-
Rob Swindell authored
I'm fed-up with MSVC assertions in ctype functions (e.g. isdigit, isprint, isspace, etc.) when called with out-of-range (e.g. negative) values. This problem only affects MSVC debug builds, but if you run them (like I do), these things are like little time bombs that can drive you crazy (knocking your board out of service). The new macros names are bit more descriptive as well.
-
- 09 Oct, 2020 2 commits
-
-
Rob Swindell authored
-
Rob Swindell authored
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).
-
- 26 Sep, 2020 2 commits
-
-
Rob Swindell authored
Don't exclude polls form the message count used for max_msgs enforcement during maintenance.
-
Rob Swindell authored
-
- 16 Aug, 2020 1 commit
-
-
Rob Swindell authored
-
- 25 May, 2020 1 commit
-
-
rswindell authored
-
- 02 May, 2020 1 commit
-
-
rswindell authored
Support the continue-on-error option (-C) with the -R (repair) command.
-
- 30 Apr, 2020 1 commit
-
-
rswindell authored
FIDOCHARSET header field appropriately. Detect UTF-8 in any of the viewable header fields and set the appropriate aux attribute flag.
-
- 04 Apr, 2020 1 commit
-
-
rswindell authored
Treat \n the same as \r (next msg cmd)when reading msgs.
-
- 03 Jan, 2020 1 commit
-
-
rswindell authored
-r = display raw message body text (not MIME-decoded)
-
- 11 Apr, 2019 1 commit
-
-
rswindell authored
-
- 01 Apr, 2019 1 commit
-
-
rswindell authored
-
- 05 Oct, 2018 1 commit
-
-
rswindell authored
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.
-
- 08 Jul, 2018 1 commit
-
-
rswindell authored
'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.
-
- 30 Apr, 2018 1 commit
-
-
rswindell authored
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.
-
- 14 Mar, 2018 1 commit
-
-
rswindell authored
(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.
-
- 13 Mar, 2018 1 commit
-
-
rswindell authored
(.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.
-
- 10 Mar, 2018 2 commits
- 09 Mar, 2018 1 commit
-
-
rswindell authored
-
- 04 Mar, 2018 1 commit
-
-
rswindell authored
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
-
- 22 Feb, 2018 2 commits
-
-
rswindell authored
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.
-
rswindell authored
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.
-
- 21 Feb, 2018 1 commit
-
-
rswindell authored
-U (capital 'U') command-line option (e.g. '-U0' or '-U2' or '-U077').
-
- 25 Nov, 2017 2 commits
-
-
rswindell authored
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
-
rswindell authored
- 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').
-
- 16 Nov, 2017 2 commits
-
-
rswindell authored
(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.
-
rswindell authored
(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.
-
- 24 Nov, 2016 1 commit
-
-
rswindell authored
'from' fields were > 127 chars in length. Now using smb_init_idx() since it does the "right thing".
-
- 21 Nov, 2016 1 commit
-
-
rswindell authored
-
- 16 Nov, 2016 2 commits