mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
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:
@@ -3,7 +3,7 @@
|
||||
/*
|
||||
* ITFlow - GET /admin/mail_preview.php?email=KEY
|
||||
* One email from Admin > Mail > Previews, as JSON - its subject, who it is
|
||||
* from and to, and its HTML - made on sample records that are thrown away
|
||||
* from, to and copied to, and its HTML - made on sample records that are thrown away
|
||||
* again (emailPreview(), functions/email_preview.php).
|
||||
*/
|
||||
|
||||
@@ -41,6 +41,8 @@ echo json_encode([
|
||||
'subject' => $email['subject'] ?? '',
|
||||
'from' => $email ? ($email['from'] !== '' ? $person($email['from_name'], $email['from']) : 'No address yet - set it under From Addresses') : '',
|
||||
'to' => $email ? $person($email['to_name'], $email['to']) : '',
|
||||
// Copied in on it - a ticket's watchers, on one email with its contact (emailQueue()'s together)
|
||||
'cc' => $email ? array_map(function ($copied) use ($person) { return $person($copied['name'], $copied['email']); }, $email['cc'] ?? []) : [],
|
||||
'also' => array_values(array_unique($others)),
|
||||
'calendar' => !empty($email['cal_str']),
|
||||
'html' => $email['html'] ?? '',
|
||||
|
||||
Reference in New Issue
Block a user