/** * Parses the headers and the body from the provided message * @param zibo\library\mail\Message $message The message to parse * @param array $variables Array with variables to replace in the body * @return null */ private function parseMessage(Message $message, array $variables) { $this->headers = array(); $this->subject = $message->getSubject(); $this->body = ''; $this->parseAddresses($message); $this->parseHeaders($message); $this->parseParts($message, $variables); }