AmendHub

jcs

/

subtext

/

amendments

/

mail.c

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 11, 2022

mail: constify fields

jcs made amendment 277 about 1 year ago

Amendments on September 15, 2022

session: Add 'b' as a shortcut to first board, 'n' to mail->new

These letter->function assignments really need to be made dynamic
so main menu changes don't require source code changes.
jcs made amendment 251 about 1 year ago

Amendments on August 3, 2022

mail: Fix a memory leak, pass malloc notes to bile

jcs made amendment 234 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 19, 2022

*: Add session signoff view, remove session_output_template

All remaining uses of session_output_template can use session_printf
which still does {{B}} and {{/B}} parsing.
Change session_output_view to session_output_view_or_printf to make it
easier to print a view and fallback to a string, rather than having to
check the result of session_output_view everywhere.
jcs made amendment 218 about 1 year ago

Amendments on July 17, 2022

mail: Don't allocate such a huge message body size

jcs made amendment 215 about 1 year ago

Amendments on July 12, 2022

board+folder+mail: Trim trailing whitespace from fields

jcs made amendment 199 about 1 year ago

mail+sysop+user_settings: Make menu options const

jcs made amendment 196 about 1 year ago

Amendments on June 22, 2022

mail: Use session_output to print message body, not printf

jcs made amendment 163 about 1 year ago

Amendments on June 13, 2022

session: Remove session_output_string, enforce login timeout

jcs made amendment 142 about 1 year ago

Amendments on June 9, 2022

sysop: Add support for deleting users

jcs made amendment 133 about 1 year ago

Amendments on June 3, 2022

mail: Check for session ending in menu loops

jcs made amendment 118 about 1 year ago

Amendments on June 2, 2022

*: Minor bug fixes, better NULL checks

jcs made amendment 114 about 1 year ago

Amendments on May 24, 2022

mail: Rewrite, yet again

Implement pagination, move message actions to a sub-menu when viewing
a message by its index on the current page
jcs made amendment 110 about 1 year ago

Amendments on May 23, 2022

*: Lots of deck chair rearranging

Move things from db files to their respective areas
Make username map contain normal username, just do strcasecmp check
during user_find_by_username.
jcs made amendment 107 about 1 year ago

Amendments on May 20, 2022

session_field_input: Add multiline support

Remove session_multiline_input since session_field_input just gets a
multiline flag. Also support backspacing at the beginning of a line
to jump back up to the end of the previous line.
jcs made amendment 103 about 1 year ago

Amendments on May 15, 2022

*: Lots of little cleanup

Remove unused variables and fix some returns
Found by compiling with Clang
jcs made amendment 101 about 1 year ago

session: Add session_menu, use it everywhere

Start on sysop board management
jcs made amendment 100 about 1 year ago