title = 'Mailbericht ' . $head['date']->format('Y-m-d H:i'); printf("
%s', htmlspecialchars($body)); } else { printf('
Geen ondersteuning voor %s.
', htmlspecialchars($head['Content-Type'])); /* TODO $mime = mailparse_msg_parse_file($filename); $part = mailparse_msg_get_part($mime, '1'); mailparse_msg_extract_part_file($part, $filename); */ } return; } if (!$User->admin('user')) { http_response_code(403); $Place['warn'] = "Geen gebruikersrechten om e-mails in te zien."; $Place['maillist'] = ''; return TRUE; } $rows = glob("$mailbox/*"); if (!$rows) { throw new Exception('Kon inbox niet openen.'); } array_splice($rows, 0, -50); ob_start(); print '