mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +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:
@@ -2,7 +2,7 @@
|
||||
|
||||
/*
|
||||
* Maintenance > Mail Queue - one email: where it stands, and why it last
|
||||
* failed or who cancelled it; who it is to and from; when it was queued,
|
||||
* failed or who cancelled it; who it is to, copied to and from; when it was queued,
|
||||
* tried, sent or given up on; its attachments and calendar file; and what it
|
||||
* says - unless it carried a link or code that opens something, cleared once it
|
||||
* has gone (functions/mail_queue.php). The
|
||||
@@ -14,7 +14,7 @@
|
||||
require_once '../../includes/modal_header.php';
|
||||
|
||||
$email_id = intval($_GET['id'] ?? 0);
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT email_id, email_status, email_attempts, email_from, email_from_name, email_recipient, email_recipient_name,
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT email_id, email_status, email_attempts, email_from, email_from_name, email_recipient, email_recipient_name, " . (ticketMailThreadReady() ? 'email_cc' : "'' AS email_cc") . ",
|
||||
email_subject, email_content, email_content = '' AS email_cleared, email_cal_str, email_attachments, email_queued_at, email_failed_at, email_sent_at, " . mailQueueErrorColumn() . "
|
||||
FROM email_queue WHERE email_id = $email_id LIMIT 1"));
|
||||
|
||||
@@ -88,6 +88,10 @@ if (!$row) { ?>
|
||||
<dl class="row small mb-3 itflow-mail-queue-facts">
|
||||
<dt class="col-sm-2 text-body-secondary fw-normal">To</dt>
|
||||
<dd class="col-sm-10 text-break"><?= $person($row['email_recipient_name'], $row['email_recipient']) ?></dd>
|
||||
<?php if ($cc = mailQueueCc($row['email_cc'])) { ?>
|
||||
<dt class="col-sm-2 text-body-secondary fw-normal">Cc</dt>
|
||||
<dd class="col-sm-10 text-break" data-email-cc><?= implode(', ', array_map(function ($copied) use ($person) { return $person($copied['name'], $copied['email']); }, $cc)) ?></dd>
|
||||
<?php } ?>
|
||||
<dt class="col-sm-2 text-body-secondary fw-normal">From</dt>
|
||||
<dd class="col-sm-10 text-break"><?= $person($row['email_from_name'], $row['email_from']) ?></dd>
|
||||
<dt class="col-sm-2 text-body-secondary fw-normal">Queued</dt>
|
||||
|
||||
Reference in New Issue
Block a user