<?php
$mailbox = 'mail/inbox';
-@list ($msgid) = explode('/', ltrim($Args, '/'));
+@list ($msgid) = explode('/', ltrim($Page->path, '/'));
function parsemailhead($headerdata)
{
list ($headerdata, $rawbody) = explode("\n\n", file_get_contents($filename), 2);
$head = parsemailhead($headerdata);
- $Article->title = 'Mailbericht ' . $head['date']->format('Y-m-d H:i');
+ $Page->title = 'Mailbericht ' . $head['date']->format('Y-m-d H:i');
printf("<h2>%s</h2>\n", htmlspecialchars($head['Subject'] ?? 'Mailbericht zonder onderwerp'));
print '<dl class="terse">';
list ($headerdata) = explode("\n\n", file_get_contents($filename));
$head = parsemailhead($headerdata);
- printf('<li><a href="%s">', "/$Page/".basename($filename));
+ printf('<li><a href="%s">', "/{$Page->handler}/".basename($filename));
print $head['Subject'];
printf(' <small class="date">%s</small>',