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:
johnnyq
2026-12-01 00:06:27 -05:00
parent 812c4ae9c2
commit d2d9732efb
31 changed files with 878 additions and 26 deletions

View File

@@ -868,6 +868,12 @@ function addToMailQueue($data) {
$thread_sql = (!empty($email['cc']) ? ", email_cc = '" . mysqli_real_escape_string($mysqli, json_encode(array_values((array) $email['cc']), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)) . "'" : '')
. (!empty($email['headers']) ? ", email_headers = '" . mysqli_real_escape_string($mysqli, json_encode((array) $email['headers'], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)) . "'" : '');
}
// Its Message-ID, for a bounce to find it by, and what a billing email is about - once the 4.3.5 update has made the columns
if (mailQueueBounceReady()) {
$message_id = trim((string) (((array) ($email['headers'] ?? []))['Message-ID'] ?? ''), "<> \t");
$thread_sql .= ($message_id !== '' && strlen($message_id) <= 255 ? ", email_message_id = '" . mysqli_real_escape_string($mysqli, $message_id) . "'" : '')
. (!empty($email['about']) && preg_match('/^(invoice|quote):\d+$/', (string) $email['about']) ? ", email_about = '" . $email['about'] . "'" : '');
}
$error = '';
try {