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:
@@ -35,10 +35,10 @@ if (!isset($sortable_columns[$sort])) {
|
||||
}
|
||||
|
||||
$search = "(email_id LIKE '%$q%' OR email_from LIKE '%$q%' OR email_from_name LIKE '%$q%' OR email_recipient LIKE '%$q%' OR email_recipient_name LIKE '%$q%' OR email_subject LIKE '%$q%'"
|
||||
. (mailQueueHasError() ? " OR email_error LIKE '%$q%'" : '') . ")
|
||||
. (mailQueueHasError() ? " OR email_error LIKE '%$q%'" : '') . (ticketMailThreadReady() ? " OR email_cc LIKE '%$q%'" : '') . ")
|
||||
AND DATE(email_queued_at) BETWEEN '$dtf' AND '$dtt'";
|
||||
|
||||
$sql = mysqli_query($mysqli, "SELECT SQL_CALC_FOUND_ROWS email_id, email_status, email_attempts, email_from, email_from_name, email_recipient, email_recipient_name,
|
||||
$sql = mysqli_query($mysqli, "SELECT SQL_CALC_FOUND_ROWS 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_queued_at, email_failed_at, email_sent_at, " . mailQueueErrorColumn() . ", email_attachments, COALESCE(email_cal_str, '') <> '' AS has_invite, email_content = '' AS email_cleared
|
||||
FROM email_queue
|
||||
WHERE $search AND {$tabs[$show][2]}
|
||||
@@ -203,6 +203,9 @@ $filtered_dates = isset($_GET['dtf']) && $_GET['dtf'] !== '' && $_GET['dtf'] !==
|
||||
</td>
|
||||
<td class="min-w-0">
|
||||
<div><?= $person($row['email_recipient_name'], $row['email_recipient']) ?></div>
|
||||
<?php if ($cc = mailQueueCc($row['email_cc'])) { ?>
|
||||
<div class="small text-body-secondary" title="<?= escapeHtml(implode(', ', array_column($cc, 'email'))) ?>" data-email-cc>+ <?= count($cc) ?> copied in</div>
|
||||
<?php } ?>
|
||||
<!-- On smaller screens the subject comes along under who it is to, and on a phone where it stands -->
|
||||
<div class="d-md-none small"><a class="ajax-modal" href="#" <?= $view ?>><?= $subject ?></a></div>
|
||||
<div class="d-sm-none small mt-1"><span class="badge rounded-pill <?= $state['badge'] ?>"><?= $state['label'] ?></span> <span class="text-body-secondary"><?= escapeHtml($state['detail']) ?></span></div>
|
||||
|
||||
Reference in New Issue
Block a user