AmendHub

jcs

/

subtext

/

amendments

/

db.c

Amendments on March 7, 2023

db: Add timezone UTC offset setting, tweak fidonet fields

jcs made amendment 361 about 1 year ago

Amendments on March 5, 2023

mail: Import FidoNet mail to local users, store fidopkt data

jcs made amendment 357 about 1 year ago

Amendments on March 2, 2023

db: Handle malloc failure, allow blanker_idle_seconds to be 0

jcs made amendment 338 about 1 year ago

Amendments on March 1, 2023

binkp+board: On second thought, store FidoNet messages differently

These are different enough from our own posts/threads that it makes
more sense to store them in separate formats and just adapt board
viewer to show both.
Add a config setting to set whether binkp will delete files after
processing or move them to a binkp-processed directory. This allows
keeping files for re-importing later, but then being able to turn
the setting on to delete files after processing to avoid filling up
the disk.
Also use non-fatal malloc/calloc in binkp processor since it's not
critical and can just retry later when we have memory.
jcs made amendment 330 about 1 year ago

Amendments on February 25, 2023

binkp: Import unseen messages into boards with matching fidonet_area

This is quite slow, but I'll work on speeding it up
jcs made amendment 323 about 1 year ago

Amendments on February 23, 2023

mail: Move to separate bile database

This should reduce the likelihood of corrupting the main user
database.
jcs made amendment 317 about 1 year ago

db: Add binkp fields

jcs made amendment 312 about 1 year ago

Amendments on February 5, 2023

*: Minor fixes found by cppcheck and scan-build

Mostly unused variables
jcs made amendment 300 about 1 year ago

Amendments on November 30, 2022

db: Properly close board and folder biles at shutdown

This was causing subsequent runs under non-MultiFinder to fail to
open files with opWrErr.
Also when we fail to open a bile and recovery fails, fall through to
letting the user recreate the file as we do if the user opts not to
recover the file.
jcs made amendment 297 about 1 year ago

Amendments on November 13, 2022

db: Set default telnet port to 0, default modem speed to 9600

With telnet port set to 0, we don't require MacTCP at first start.
The Mac Plus serial port drops a bit of traffic at 19200 during load.
jcs made amendment 283 about 1 year ago

Amendments on October 1, 2022

db: Oops, fix previous

jcs made amendment 260 about 1 year ago

serial: Allow bits/parity/stop to be configured, default to 8N1

jcs made amendment 259 about 1 year ago

Amendments on September 21, 2022

session: Stop persisting tally, prune old session logs

Prune after 21 days of logs by default, every morning. The db was
getting quite large and each new login or recent call check was
taking a long time.
We're stable now so we don't have to persist the call log tally to
disk, just keep it in memory.
jcs made amendment 255 about 1 year ago

Amendments on September 16, 2022

board: Store each user's 'via' in each post

I saw this on another BBS and thought it was kind of neat to see
how each person connected when they made a post.
jcs made amendment 253 about 1 year ago

Amendments on September 14, 2022

*: Add Message of the Day support

Track the highest MOTD id each user has seen and only show it on
login if the current one is higher than the user's highest seen.
Also, in migrations, we can't iterate through users while modifying
each one, because the order will change as we save and write a new
user in the map.
jcs made amendment 250 about 1 year ago

Amendments on August 3, 2022

db: Better malloc notes

jcs made amendment 229 about 1 year ago

Amendments on July 31, 2022

*: Add malloc annotations

jcs made amendment 226 about 1 year ago

Amendments on July 21, 2022

*: Use NewPtr instead of malloc, add malloc and free debugging

Instead of free(ptr), use xfree(&ptr) and after it calls
DisposePtr(ptr), it will update ptr to point at NULL to catch
use-after-frees.
When MALLOC_DEBUG is defined, each allocation is added to a
list, and removed when freed. If it's not in the list at free
time, it's a double-free. Also, instead of pointing pointers at
NULL, point them to a pre-defined block of zeroes and in the
idle loop, periodically check that this block is still zero. This
will also catch use-after-frees in a more reliable (but costly)
way.
jcs made amendment 220 about 1 year ago

Amendments on July 14, 2022

telnet: When banning an IP, optionally send it via UDP to trusted proxy

If the new trusted_proxy_udp_port config option is set, send a UDP
packet containing the IP to the trusted_proxy_ip host so it can ban
it more aggressively.
jcs made amendment 204 about 1 year ago

Amendments on July 13, 2022

serial: Add config setting for port speed

jcs made amendment 202 about 1 year ago