Mail queue keeps what a sent email said: only an email with a link or code that opens something - a shared login and its code, a portal or agent invite, a password link, a contract to sign or a task to approve - is cleared once sent, and a day after it was queued if it failed or was cancelled; emailQueue gains a sensitive option set by those senders, cron marks sent email with mailQueueSentSql, nightly runs mailQueueClearSensitive, and a cleared email can't be retried; database 3.7.1 adds email_queue.email_sensitive and marks email waiting at the update; 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-16 18:48:57 -05:00
parent 8784c50abe
commit c2eb55c8dc
17 changed files with 107 additions and 30 deletions

1
db.sql
View File

@@ -1683,6 +1683,7 @@ CREATE TABLE `email_queue` (
`email_attempts` tinyint(1) NOT NULL DEFAULT 0,
`email_sent_at` datetime DEFAULT NULL,
`email_ticket_reply_id` int(11) DEFAULT NULL,
`email_sensitive` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`email_id`),
KEY `email_status` (`email_status`,`email_queued_at`),
KEY `email_ticket_reply_id` (`email_ticket_reply_id`)