mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
Mail review stage 8: Admin > Ignored Senders lists addresses and domains whose email the ticket mailbox sets aside with no ticket, reply, answer or Unprocessed Email entry, a domain taking its subdomains, each counting what it set aside and saving one that takes a contact's or client's email saying so; Ignore Sender in Unprocessed Email ignores the address or its domain and dismisses the others waiting, leaving contacts, client domains and public domains to an admin; Try an Email has the step; every queued email gets its own Message-ID and invoice and quote emails say what they are about, so a bounce marks the email it came back about as Bounced with the mail server's reason in a new Mail Queue tab, on the ticket reply for those it names and in the invoice or quote history, matched by address and subject when the report has no Message-ID; .gitignore leaves out uploads/mail_unprocessed and uploads/kb (database 4.3.5); 26.12.3 changelog
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
/*
|
||||
* Maintenance > Mail Queue - every email ITFlow sends, from being queued to
|
||||
* sent, and what came of it (functions/mail_queue.php says what each status
|
||||
* is). The tabs pick Waiting, Sending, Retrying, Failed, Sent or Cancelled,
|
||||
* is). The tabs pick Waiting, Sending, Retrying, Failed, Sent, Bounced (sent, then a mail
|
||||
* server's bounce for it came back - mailQueueBounced()) or Cancelled,
|
||||
* each with how many; at the top, anything stopping the queue moving -
|
||||
* sending switched off, cron not running, the job off, or email waiting
|
||||
* longer than it should. An email can be retried from the start, cancelled
|
||||
@@ -39,7 +40,7 @@ $search = "(email_id LIKE '%$q%' OR email_from LIKE '%$q%' OR email_from_name LI
|
||||
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, " . (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
|
||||
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" . mailQueueBounceColumns() . "
|
||||
FROM email_queue
|
||||
WHERE $search AND {$tabs[$show][2]}
|
||||
ORDER BY {$sortable_columns[$sort]}, email_id DESC
|
||||
@@ -144,7 +145,7 @@ $filtered_dates = isset($_GET['dtf']) && $_GET['dtf'] !== '' && $_GET['dtf'] !==
|
||||
<?php foreach ($tabs as $key => [$label, $icon]) {
|
||||
$alert = '';
|
||||
if ($show !== $key && $counts[$key]) {
|
||||
$alert = ['failed' => 'text-bg-danger', 'retrying' => 'text-bg-warning'][$key] ?? '';
|
||||
$alert = ['failed' => 'text-bg-danger', 'retrying' => 'text-bg-warning', 'bounced' => 'text-bg-danger'][$key] ?? '';
|
||||
} ?>
|
||||
<a class="nav-link text-nowrap <?= $show === $key ? 'active' : '' ?>" href="<?= escapeHtml($pill_url($key)) ?>" data-mail-queue-tab="<?= $key === '' ? 'all' : $key ?>">
|
||||
<i class="fas fa-fw <?= $icon ?> me-1"></i><?= $label ?> <span class="badge rounded-pill ms-1 <?= $alert ?>"><?= $counts[$key] ?></span>
|
||||
|
||||
Reference in New Issue
Block a user