Unprocessed Email > View - the email as it came, from its copy (mailUnprocessedRead(), * functions/mail_unprocessed.php): who it is from and to, why it wasn't taken, its text, attachments and headers. * Shown as text - nothing in it runs or loads. Make a Ticket and Add to a Ticket open their own windows. */ require_once '../../../includes/modal_header.php'; enforceUserPermission('module_support'); $row = mailUnprocessedReady() ? mailUnprocessedRow($_GET['id'] ?? 0) : null; if (!$row) { echo json_encode(['error' => "That email isn't there any more."]); exit; } $id = intval($row['email_unprocessed_id']); $state = mailUnprocessedState($row); $email = mailUnprocessedRead($row); $can_edit = lookupUserPermission('module_support') >= 2 && $state['key'] === 'waiting'; $subject = trim((string) $row['email_unprocessed_subject']) !== '' ? escapeHtml($row['email_unprocessed_subject']) : '(no subject)'; ob_start(); ?>
= escapeHtml($email['headers']) ?>