Clean up incoming ticket mail: a bounce is read first whatever the settings, marking the contacts it failed for and noting the ticket the email was about, found by the bounced email's Message-ID or subject, and never makes a ticket; only a mail server's own address or a bounce report counts, so an address with mta in it is a person; out-of-office replies are a note on the ticket they answer without reopening it or a notice; mail from systems and lists still makes tickets but is never answered; ITFlow's automatic emails carry Auto-Submitted and X-Auto-Response-Suppress, at most five an hour to one address; a watcher's or guest's reply is the client's reply, named by database 4.2.7, reopening the ticket and passed on; a near-same subject is a reply only from the ticket's contact or a watcher and otherwise a new ticket linked as related; a reply to a closed ticket is kept on it as a note and only contacts and watchers are told it is closed; Try an Email follows; 26.12.3 changelog entries

This commit is contained in:
johnnyq
2026-11-30 13:34:24 -05:00
parent 42ea7e58a5
commit b22ed53ab3
19 changed files with 627 additions and 345 deletions

2
db.sql
View File

@@ -4960,6 +4960,8 @@ CREATE TABLE `ticket_replies` (
`ticket_reply_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
`ticket_reply_archived_at` datetime DEFAULT NULL,
`ticket_reply_by` int(11) NOT NULL,
`ticket_reply_from_name` varchar(200) DEFAULT NULL,
`ticket_reply_from_email` varchar(255) DEFAULT NULL,
`ticket_reply_ticket_id` int(11) NOT NULL,
PRIMARY KEY (`ticket_reply_id`),
KEY `ticket_reply_ticket_id` (`ticket_reply_ticket_id`,`ticket_reply_archived_at`),