\Horde_ActiveSync_Rfc822

Horde_ActiveSync_Rfc822:: class provides functionality related to dealing with raw RFC822 message strings within an ActiveSync context.

Summary

Methods
Properties
Constants
__construct()
getMessage()
replaceMime()
getString()
getHeaders()
addStandardHeaders()
getMimeObject()
getBytes()
$memoryLimit
No constants found
_parseStream()
_findHeader()
$_hdr_pos
$_eol
$_stream
$_header_text
N/A
No private methods found
No private properties found
N/A

Properties

$memoryLimit

$memoryLimit : integer

The memory limit for use with the PHP temp stream.

Type

integer

$_hdr_pos

$_hdr_pos : integer

Position of end of headers.

Type

integer

$_eol

$_eol : integer

The size of the EOL sequence.

Type

integer

$_stream

$_stream : \Horde_Stream

The raw message data in a stream.

Type

\Horde_Stream

$_header_text

$_header_text : string

The header text.

Type

string

Methods

__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.

getString()

getString() : \stream

Return the raw message data.

Returns

\stream —

resource

getHeaders()

getHeaders() : \Horde_Mime_Headers

Return the message headers.

Returns

\Horde_Mime_Headers —

The header object.

addStandardHeaders()

addStandardHeaders() 

Check for and add standard headers if needed.

getMimeObject()

getMimeObject() : \Horde_Mime_Part

Return a Mime object representing the entire message.

Returns

\Horde_Mime_Part —

The Mime object.

getBytes()

getBytes() : integer

Return the length of the message data.

Returns

integer

_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.