/**
  * Generate a human readable HTML comment with message info.
  *
  * @param MailmanSwiftMessageAdapter $message
  *
  * @return string
  */
 protected function getMessageInfo(MailmanSwiftMessageAdapter $message)
 {
     return sprintf("<!--\nStatus: %s, \nMessageID: %s, \nContent-Type: %s, \nFrom:%s, \nTo:%s, \nReply-To:%s, \nCC:%s, \nBCC:%s, \nSubject:%s\n-->\n", $message->getStatus(), $message->getId(), $message->getContentType(), json_encode($message->getFrom()), json_encode($message->getTo()), json_encode($message->getReplyTo()), json_encode($message->getCc()), json_encode($message->getBcc()), $message->getSubject());
 }
 /**
  * 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];
 }