/**
  * Get the path to the email log directory.
  *
  * @param MailmanSwiftMessageAdapter $message
  *
  * @return string
  */
 protected function getMessageLogDirectoryPath(MailmanSwiftMessageAdapter $message)
 {
     list($messageId) = explode('@', $message->getId());
     return storage_path($this->storagePath . '/' . $messageId);
 }
 /**
  * Get basic information from Swift_Mime_Message
  * for logging purposes.
  *
  * @param MailmanSwiftMessageAdapter $message
  *
  * @return array
  */
 protected function getMessageInfo(MailmanSwiftMessageAdapter $message)
 {
     return ['message_id' => $message->getId(), 'content_type' => $message->getContentType(), 'status' => $message->getStatus(), 'from' => $message->getFrom(), 'to' => $message->getTo(), 'reply_to' => $message->getReplyTo(), 'cc' => $message->getCc(), 'bcc' => $message->getBcc(), 'subject' => $message->getSubject(), 'body' => $message->getBody(), 'instance' => $message];
 }