'./test.mbox')); // we could still go on - just for fun ;) if(!$mail->hasTop) { throw new Exception('top is not supported :-('); } $count = $mail->countMessages(); echo ''; $i = $count - 10; if($i < 0) { $i = 0; } for(; $i <= $count; ++$i) { $message = $mail->getHeader($i, 10); try { echo "'; echo ''; } catch (Exception $e) { echo ''; } } echo '
$i/$count"; echo htmlentities($message->From); echo ''; // case doesn't matter echo htmlentities($message->suBjecT); echo '
'; echo htmlentities(substr($message->getContent(), 0, 500)); echo '...
';