\Horde_ActiveSync_Imap_EasMessageBuilder_Mime

Handle building the AirSyncBaseBody property when sending a full MIME mail structure. I.e., BodyTypePreference == Horde_ActiveSync::BODYPREF_TYPE_MIME.

Summary

Methods
Properties
Constants
__construct()
getMessageObject()
create()
No public properties found
No constants found
_populateObject()
_setHeaderProperties()
_setFlags()
_deliveryNotification()
_meetingRequest()
_poomMailFlagged()
_specialTypes()
_signedEncrypted()
_messageImportance()
_getEASImportance()
_getiTipStatus()
_buildBodyPart()
_buildBody()
_buildMessage()
_handleIdnaErrors()
_doTruncation()
_buildPlainMime()
_buildHtmlMime()
_buildMultipartWrapper()
_getHeaders()
_buildEncrypted()
_canModify()
$_mbd
$_imapMessage
$_easMessage
$_airsyncBody
$_options
$_version
$_logger
$_procid
N/A
No private methods found
No private properties found
N/A

Properties

$_options

$_options : array

Type

array

$_version

$_version : string

Type

string

$_logger

$_logger : \Horde_Log_Logger

Logger

Type

\Horde_Log_Logger

$_procid

$_procid : integer

Process Id

Type

integer

Methods

__construct()

__construct(\Horde_ActiveSync_Imap_Message  $imap_message, array  $options, \Horde_Log_Logger  $logger) 

Parameters

\Horde_ActiveSync_Imap_Message $imap_message

The IMAP message object.

array $options

Options array.

\Horde_Log_Logger $logger

The logger.

getMessageObject()

getMessageObject(  $params = array()) : \Horde_ActiveSync_Message_Base

Return a Horde_ActiveSync_Message_Mail object with the appropriate body related properties populated.

Parameters

$params

Paramater array: -flags: An array representing the message's flags.

Returns

\Horde_ActiveSync_Message_Base

create()

create(\Horde_ActiveSync_Imap_Message  $imap_message, array  $options,   $logger) : \Horde_ActiveSync_Imap_EasMessageType

Simple factory for creating the correct Horde_ActiveSync_Imap_EasMessageType object.

Parameters

\Horde_ActiveSync_Imap_Message $imap_message
array $options
$logger

The logger.

Returns

\Horde_ActiveSync_Imap_EasMessageType

_populateObject()

_populateObject() 

Populate the EAS message object.

_setHeaderProperties()

_setHeaderProperties() 

Sets general email header properties: To:, From:, Cc:, Reply-To:, Subject:, Threadtopic:, Date:

_setFlags()

_setFlags(  $msgFlags) 

Set IMAP message flags (EAS categories).

Parameters

$msgFlags

_deliveryNotification()

_deliveryNotification() 

Check for Disposition-Notification and deliver-status reports.

_meetingRequest()

_meetingRequest() 

Check for meeting requests/responses.

_poomMailFlagged()

_poomMailFlagged() 

Handle POOMMAIL_FLAGGED data.

_specialTypes()

_specialTypes() 

Check for and handle special message types.

Signed, Encrypted, Disposition, MeetingRequest, Flagged.

_signedEncrypted()

_signedEncrypted() 

Handle signed/encrypted messageclass.

_messageImportance()

_messageImportance() 

Set any importance data.

_getEASImportance()

_getEASImportance(string  $importance) : integer

Map Importance header values to EAS importance values.

Parameters

string $importance

The importance [high|normal|low].

Returns

integer —

The EAS importance value [0|1|2].

_getiTipStatus()

_getiTipStatus(\Horde_Icalendar  $vCal) 

Return the attendee participation status.

Parameters

\Horde_Icalendar $vCal

The vCalendar component.

Throws

\Horde_ActiveSync_Exception

_buildBody()

_buildBody() 

Perform all tasks.

_buildMessage()

_buildMessage() 

Determine if we need plain and/or html parts and if we have attachments.

Builds appropriate MIME parts and populates $this->_easMessage properties accordingly.

_handleIdnaErrors()

_handleIdnaErrors(\Horde_Mime_Headers  $headers) 

Replace any Horde_Mime-Headers_Addresses objects with our own override, which prevents Idna encoding.

Parameters

\Horde_Mime_Headers $headers

The headers object.

_doTruncation()

_doTruncation() 

Handle any truncaction and set properties accordingly.

_buildPlainMime()

_buildPlainMime() : \Horde_Mime_Part

Returns a Horde_Mime_Part representing a plain text body.

Returns

\Horde_Mime_Part

_buildHtmlMime()

_buildHtmlMime() : \Horde_Mime_Part

Returns a Horde_Mime_Part representing a HTML body.

Returns

\Horde_Mime_Part

_buildMultipartWrapper()

_buildMultipartWrapper(\Horde_Mime_Part  $mime) : \Horde_Mime_Part

Returns a multipart/mixed Horde_Mime_Part that wraps the body and all attachments parts.

Parameters

\Horde_Mime_Part $mime

Returns

\Horde_Mime_Part

_getHeaders()

_getHeaders() : \Horde_Mime_Headers

Returns the headers for the current IMAP message, with the Content-Type and Content-Transfer-Encoding headers removed since we build those ourselves.

Returns

\Horde_Mime_Headers

_buildEncrypted()

_buildEncrypted() 

Set airsyncBody properties with the raw IMAP message. Used when message is encrypted and/or signed since we can't modify anything.

_canModify()

_canModify() : boolean

Returns if we are able to (re)build our own MIME message or if we must use the original raw message.

Returns

boolean —

True if able to modify false otherwise.