Keep a ticket's emails in one conversation: every client email about a ticket has the subject [TCK-123] and its subject and carries Message-ID, In-Reply-To and References, kept per ticket in ticket_mail_threads, and the email parser finds a reply's ticket by those headers first, then by the number in brackets with the prefix that ticket was given; one email goes to the contact with the watchers and colleagues copied in, switchable in Admin, Settings, Tickets; a client's reply by email, text or portal is passed on to the people following the ticket who weren't on it, by email only when it answers one of the ticket's emails; others in To and Cc on a client's or watcher's email become watchers, never your own domain or agents; the same email twice makes one ticket and a merged ticket's replies go to the ticket it went into; database 4.2.6; 26.12.3 changelog entries

This commit is contained in:
johnnyq
2026-11-30 13:08:24 -05:00
parent b208ed0069
commit 42ea7e58a5
27 changed files with 831 additions and 162 deletions

View File

@@ -267,6 +267,9 @@ if (isset($_POST['add_ticket_comment'])) {
// Store any attached files against this reply
saveTicketAttachments($ticket_id, $ticket_reply_id, 'file');
// On to the people following the ticket, with its files - as an agent's reply goes to them (functions/ticket_mail_thread.php)
ticketMailRelayClientReply($ticket_id, $ticket_reply_id, stripslashes($session_contact_name), stripslashes($session_contact_email));
// Custom action/notif handler
triggerCustomAction('ticket_reply_client', $ticket_id);