public function getMessage($messageId) { $files = $this->findFiles(); if (!isset($files[$messageId])) { throw new \RuntimeException("Unable to find mail with ID {$messageId}"); } return $this->readMail($files[$messageId]); }