__construct() __construct(mixed $rfc822, boolean $auto_add_headers = true) Constructor. Parameters mixed $rfc822 The incoming message. Either a string or a stream resource. boolean $auto_add_headers Automatically add the standard Message-ID and User-Agent headers? @since 2.14.0
getMessage() getMessage() : \Horde_Stream Returns the raw message with the message headers stripped. Returns \Horde_Stream
replaceMime() replaceMime(\Horde_Mime_Part $part) Replace the MIME part of the message sent from the client. Headers from the original message are always used. Parameters \Horde_Mime_Part $part The new MIME part.
getHeaders() getHeaders() : \Horde_Mime_Headers Return the message headers. Returns \Horde_Mime_Headers — The header object.
getMimeObject() getMimeObject() : \Horde_Mime_Part Return a Mime object representing the entire message. Returns \Horde_Mime_Part — The Mime object.
_parseStream() _parseStream(\Horde_Stream $stream) Parse a Horde_Stream object to get the header and eol data. Parameters \Horde_Stream $stream The stream object.
_findHeader() _findHeader() : array Find the location of the end of the header text. Returns array — 1st element: Header position, 2nd element: Length of trailing EOL.