- Sep 25, 2023
-
-
Rob Swindell authored
There are other ways to generate forced-upper case expanded @-codes, if that's what you want. Fewer duplicates in text.dat make localization, translation to other languages easier.
-
- Jun 09, 2023
-
-
Rob Swindell authored
So Clang-FreeBSD was warning (in compiles of scfg/scfg*.c by Deuce): result of comparison of constant 100000 with expression of type 'uint16_t' (aka 'unsigned short') is always true Why? Cause a uint16_t's max value is 65535 (less than 100000). Sure we could have just lowered the UIFC max number of config items to 65535, but that would have been too easy. And why are these compared-with values of type uint16_t to begin with? Because most ctrl/*.cnf lists (of configuration items) were limited to 65535 entries cause ... 16-bit DOS, historically. Now that *.cnf files aren't used, we could just increase these scfg_t.*_total type sizes from 16 to 32-bits, yeah? The result is this commit. I went to (signed) int so we could still keep -1 as the special illegal sub/dir num value (e.g. INVALID_SUB, which is sometimes used to indicate the email message base). Theoretically, 2 billion configuration items could be supported in these lists, but SCFG will limit you to 100000 anyway. So there's a whole lot of s/uint/int in this commit. I'd be very surprised if this doesn't result in some new GCC/Clang warnings, but at least the old "comparison of constant 100000" warnings are now gone!
-
- Mar 11, 2023
-
-
Rob Swindell authored
Does exactly the same thing, no change in behavior and unlikely there's any change in performance.
-
- Oct 18, 2022
-
-
Rob Swindell authored
Also resolved some 32 vs 64-bit 'long' issues/ambiguities that have long-remained. :-) This commit also removes logon.lst file support. There's a TODO block remaining in js_user.c for setting portions of a user's birthdate (e.g. just the year or month or day).
-
- Feb 24, 2022
-
-
Rob Swindell authored
CID 33210 CID 33211
-
- Jun 06, 2021
-
-
Rob Swindell authored
Don't need no stinking pre/appended white-space in our filenames!
-
- Apr 04, 2021
-
-
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...
-
- Feb 18, 2021
-
-
Rob Swindell authored
-
- Aug 16, 2020
-
-
Rob Swindell authored
-
- May 14, 2020
-
-
rswindell authored
SCFG for Win32 is linked against a load_cfg lib that builds withOUT SCFG defined, so these compiled AR elements were allocated and then many SCFG operations (e.g. copy/paste, create new) would copy the allocated ARs to another configuration and then be subjected to double-free upon exit/clean-up (resulting in exception or crash). Just get rid of this cruft and some other related RAM-byte-saving hold-overs from the MS-DOS days.
-
- Feb 20, 2019
-
-
rswindell authored
(JS bbs.post_msg()): If the WM_QUOTE mode flag is *not* set, then it will auto- create the quote file (quotes.txt) and add the WM_QUOTE mode bit before calling sbbs_t::writemsg(). So if existing JS scripts call bbs.post_msg(..., WM_QUOTE) with a custom-created quote file (e.g. with msg tails), that'll still work as before (e.g. DDMsgReader.js). bbs.email() and bbs.netmail() now support an optional reply_header_object argument which works like bbs.post_msg(). These methods (and the underlying C++ methods: sbbs_t::email(), netmail(), inetmail(), all auto-create the quote file now, when the WM_QUOTE mode flag is *not* set. The auto-created quotes.txt now includes the plain-text version of MIME-encoded messages. the bbs.post_msg(), email(), and netmail() methods now all support reply header objects that came directly from bbs.get_msg_header() *or* copies of such header objects (but the auto-quoting feature won't work when supplied this type of header object). So if passed a header object returned from bbs.get_msg_header(), we can now use the message base (for auto-quoting) and the underlying msg storage directly (no JS parsing necessary). This is what the new js_GetMsgHeaderObjectPrivates() function is used for. js_ParseMsgHeaderObject() (and the underlying parse_header_object() function) now supports either an actual internally-generated msg header object (e.g. returned from bbs.get_msg_header()) or one that is a copy or hand-constructed. quotemsg() no longer tries to get a copy of the msg index/header. It shouldn't have to since we can now get to underlying msg storage in the js_msgbase.c via js_GetMsgHeaderObjectPrivates(). quotemsg() now reads only the plain-text portion of MIME-encoded messages. As part of this effort, I modernized the method prototypes using default argument values (e.g. WM_NONE for wm_mode arguments) and removed some extraneous WM_EMAIL and WM_NETMAIL specifications (these wm_mode flags are automatically added by the sbbs_t::email() and *netmail() functions). savemsg() now *does* support reply-IDs/thread-linkage via the additional 'remsg' argument (when non-NULL). Replaced some use of nulstr with NULL. Replaced more boilerplate SMB open code with calls to smb_open_sub().
-
- Jul 29, 2018
-
-
rswindell authored
-
- Jul 25, 2018
-
-
rswindell authored
destination addresses): this feature messed up the smeg@ address book Baja module. Use the email_sec.js module if you want this feature.
-
- Mar 16, 2018
-
-
rswindell authored
when creating a new netmail message. Not exactly an "address book", but a convenience nonetheless.
-
- Jul 21, 2011
-
-
rswindell authored
That is, if any of the following text.dat entries are set to a blank/emtpy string (by editing ctrl/text.dat or via run-time script modification), the question will not be asked of the user allowing greater sysop-customization of hard-coded processes (e.g. new user application): ClearUploadQueueQ ClearDownloadQueueQ HangUpAfterXferQ ChatWithGuruInsteadQ ForwardMailQ DownloadBatchQ LogOffQ DeleteErrorLogQ ClearErrCounter DeleteGuruLogQ AutoTerminalQ AnsiTerminalQ ColorTerminalQ ExAsciiTerminalQ CallingFromNorthAmericaQ ReadYourMailNowQ NScanAllGrpsQ SScanAllGrpsQ NewPasswordQ ContinueQ EnterYourPhoneNumber UserInfoCorrectQ UseExternalEditorQ DownloadAttachedFileQ AddSubToNewScanQ (new) RemoveFromNewScanQ DisplaySubjectsOnlyQ Post SearchExtendedQ ViewSysInfoFileQ ViewLogonMsgQ WithLineNumbersQ
-
- Mar 01, 2011
- Mar 20, 2009
-
-
rswindell authored
-
- Feb 14, 2008
-
-
rswindell authored
changed FileNotThere text.dat entry to FileDoesNotExist which displays the file path. Now check if the directory exists before checking the available disk space before allowing file uploads and report the correct error (using DirectoryDoesNotExist) if the directory is missing (a common mistake). Overhaul viewfilecontents() - wow, I can't wait to re-write all of this moldy filebase code!
-
- Aug 14, 2007
-
-
deuce authored
Remove time32str()
-
- Feb 28, 2006
-
-
rswindell authored
and receive_file() - so str_cmds.js may now support ;GET and ;PUT.
-
- Sep 20, 2005
- Aug 22, 2003
- Jul 26, 2003
-
-
rswindell authored
if text/menu/*prot.asc does not exist.
-
- May 09, 2003
-
-
rswindell authored
-
- Jan 31, 2003
-
-
rswindell authored
module (.js or .bin) files.
-
- Nov 13, 2002
-
-
rswindell authored
variants (gmtime_r, localtime_r, and ctime_r) for thread-safe operation on Unix
-
- Oct 15, 2002
-
-
rswindell authored
toggle options (that don't fit in sys_misc), first bit used is MM_REALNAME to control receipt of e-mail (Internet and local) based on user's real name.
-
- Mar 13, 2002
-
-
rswindell authored
GMT/UTC.
-
- Feb 07, 2002
-
-
rswindell authored
-
- Feb 06, 2002
- Nov 04, 2001
- Sep 28, 2001
-
-
rswindell authored
-
- Aug 29, 2001
-
-
rswindell authored
-
- Aug 01, 2001
-
-
rswindell authored
-
- Jun 23, 2001
-
-
rswindell authored
-