Rework how notice queue files are setup and maintained, which should allow all users to send notifications now without error. Implements #14337
Update code for PHP 8.x in frontend and backend
Fixup repeat message detection a bit to improve chances of it catching more repeats. Previously things like leading timestamps or unrelated header strings could render the checks pointless.
Tweak the SMTP queue processing a bit to hopefully batch more messages together at a time.
Attempt to catch more types of errors running the message queue and log the details when possible/relevant.
Misc code cleanup, remove unused function, fix formatting, etc.
While here, make a failure to write the config cache non-fatal
Related issues
Feature #14337: Allow SMTP notifications from non-root processes
Notification code updates
allow all users to send notifications now without error. Implements #14337
more repeats. Previously things like leading timestamps or unrelated
header strings could render the checks pointless.
together at a time.
log the details when possible/relevant.