private function readMail($path)
{
$content = file_get_contents($path);
if ($content === FALSE) {
throw new \RuntimeException("Unable to read message stored in file '{$path}'");
}
$message = unserialize($content);
if (!$message instanceof Message) {
throw new \RuntimeException("Unable to deserialize message stored in file '{$path}'");
}
return $message;
}