Horde_ActiveSync_Imap_EasMessageBuilder_Mime
extends Horde_ActiveSync_Imap_EasMessageBuilder
in package
Handle building the AirSyncBaseBody property when sending a full MIME mail structure. I.e., BodyTypePreference == Horde_ActiveSync::BODYPREF_TYPE_MIME.
Tags
Table of Contents
- $_airsyncBody : Horde_ActiveSync_Message_AirSyncBaseBody
- $_easMessage : Horde_ActiveSync_Message_Base
- $_imapMessage : Horde_ActiveSync_Imap_Message
- $_logger : Horde_Log_Logger
- Logger
- $_mbd : Horde_ActiveSync_Imap_MessageBodyData
- $_options : array<string|int, mixed>
- $_procid : int
- Process Id
- $_version : string
- __construct() : mixed
- create() : Horde_ActiveSync_Imap_EasMessageType
- Simple factory for creating the correct Horde_ActiveSync_Imap_EasMessageType object.
- getMessageObject() : Horde_ActiveSync_Message_Base
- Return a Horde_ActiveSync_Message_Mail object with the appropriate body related properties populated.
- _buildBody() : mixed
- Perform all tasks.
- _buildBodyPart() : Horde_ActiveSync_Message_AirSyncBaseBodypart
- Build the BodyPart data.
- _buildEncrypted() : mixed
- Set airsyncBody properties with the raw IMAP message. Used when message is encrypted and/or signed since we can't modify anything.
- _buildHtmlMime() : Horde_Mime_Part
- Returns a Horde_Mime_Part representing a HTML body.
- _buildMessage() : mixed
- Determine if we need plain and/or html parts and if we have attachments.
- _buildMultipartWrapper() : Horde_Mime_Part
- Returns a multipart/mixed Horde_Mime_Part that wraps the body and all attachments parts.
- _buildPlainMime() : Horde_Mime_Part
- Returns a Horde_Mime_Part representing a plain text body.
- _canModify() : bool
- Returns if we are able to (re)build our own MIME message or if we must use the original raw message.
- _deliveryNotification() : mixed
- Check for Disposition-Notification and deliver-status reports.
- _doTruncation() : mixed
- Handle any truncaction and set properties accordingly.
- _getEASImportance() : int
- Map Importance header values to EAS importance values.
- _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.
- _getiTipStatus() : mixed
- Return the attendee participation status.
- _handleIdnaErrors() : mixed
- Replace any Horde_Mime-Headers_Addresses objects with our own override, which prevents Idna encoding.
- _meetingRequest() : mixed
- Check for meeting requests/responses.
- _messageImportance() : mixed
- Set any importance data.
- _poomMailFlagged() : mixed
- Handle POOMMAIL_FLAGGED data.
- _populateObject() : mixed
- Populate the EAS message object.
- _setFlags() : mixed
- Set IMAP message flags (EAS categories).
- _setHeaderProperties() : mixed
- Sets general email header properties: To:, From:, Cc:, Reply-To:, Subject:, Threadtopic:, Date:
- _signedEncrypted() : mixed
- Handle signed/encrypted messageclass.
- _specialTypes() : mixed
- Check for and handle special message types.
Properties
$_airsyncBody
protected
Horde_ActiveSync_Message_AirSyncBaseBody
$_airsyncBody
$_easMessage
protected
Horde_ActiveSync_Message_Base
$_easMessage
$_imapMessage
protected
Horde_ActiveSync_Imap_Message
$_imapMessage
$_logger
Logger
protected
Horde_Log_Logger
$_logger
$_mbd
protected
Horde_ActiveSync_Imap_MessageBodyData
$_mbd
$_options
protected
array<string|int, mixed>
$_options
$_procid
Process Id
protected
int
$_procid
$_version
protected
string
$_version
Methods
__construct()
public
__construct(Horde_ActiveSync_Imap_Message $imap_message, array<string|int, mixed> $options, Horde_Log_Logger $logger) : mixed
Parameters
- $imap_message : Horde_ActiveSync_Imap_Message
-
The IMAP message object.
- $options : array<string|int, mixed>
-
Options array.
- $logger : Horde_Log_Logger
-
The logger.
Return values
mixed —create()
Simple factory for creating the correct Horde_ActiveSync_Imap_EasMessageType object.
public
static create(Horde_ActiveSync_Imap_Message $imap_message, array<string|int, mixed> $options, $logger) : Horde_ActiveSync_Imap_EasMessageType
Parameters
- $imap_message : Horde_ActiveSync_Imap_Message
- $options : array<string|int, mixed>
- $logger :
-
The logger.
Return values
Horde_ActiveSync_Imap_EasMessageType —getMessageObject()
Return a Horde_ActiveSync_Message_Mail object with the appropriate body related properties populated.
public
getMessageObject([ $params = array() ]) : Horde_ActiveSync_Message_Base
Parameters
Return values
Horde_ActiveSync_Message_Base —_buildBody()
Perform all tasks.
protected
_buildBody() : mixed
Return values
mixed —_buildBodyPart()
Build the BodyPart data.
protected
_buildBodyPart() : Horde_ActiveSync_Message_AirSyncBaseBodypart
Return values
Horde_ActiveSync_Message_AirSyncBaseBodypart —_buildEncrypted()
Set airsyncBody properties with the raw IMAP message. Used when message is encrypted and/or signed since we can't modify anything.
protected
_buildEncrypted() : mixed
Return values
mixed —_buildHtmlMime()
Returns a Horde_Mime_Part representing a HTML body.
protected
_buildHtmlMime() : Horde_Mime_Part
Return values
Horde_Mime_Part —_buildMessage()
Determine if we need plain and/or html parts and if we have attachments.
protected
_buildMessage() : mixed
Builds appropriate MIME parts and populates $this->_easMessage properties accordingly.
Return values
mixed —_buildMultipartWrapper()
Returns a multipart/mixed Horde_Mime_Part that wraps the body and all attachments parts.
protected
_buildMultipartWrapper(Horde_Mime_Part $mime) : Horde_Mime_Part
Parameters
- $mime : Horde_Mime_Part
Return values
Horde_Mime_Part —_buildPlainMime()
Returns a Horde_Mime_Part representing a plain text body.
protected
_buildPlainMime() : Horde_Mime_Part
Return values
Horde_Mime_Part —_canModify()
Returns if we are able to (re)build our own MIME message or if we must use the original raw message.
protected
_canModify() : bool
Return values
bool —True if able to modify false otherwise.
_deliveryNotification()
Check for Disposition-Notification and deliver-status reports.
protected
_deliveryNotification() : mixed
Return values
mixed —_doTruncation()
Handle any truncaction and set properties accordingly.
protected
_doTruncation() : mixed
Return values
mixed —_getEASImportance()
Map Importance header values to EAS importance values.
protected
_getEASImportance(string $importance) : int
Parameters
- $importance : string
-
The importance [high|normal|low].
Return values
int —The EAS importance value [0|1|2].
_getHeaders()
Returns the headers for the current IMAP message, with the Content-Type and Content-Transfer-Encoding headers removed since we build those ourselves.
protected
_getHeaders() : Horde_Mime_Headers
Return values
Horde_Mime_Headers —_getiTipStatus()
Return the attendee participation status.
protected
_getiTipStatus(Horde_Icalendar $vCal) : mixed
Parameters
- $vCal : Horde_Icalendar
-
The vCalendar component.
Tags
Return values
mixed —_handleIdnaErrors()
Replace any Horde_Mime-Headers_Addresses objects with our own override, which prevents Idna encoding.
protected
_handleIdnaErrors(Horde_Mime_Headers $headers) : mixed
Parameters
- $headers : Horde_Mime_Headers
-
The headers object.
Return values
mixed —_meetingRequest()
Check for meeting requests/responses.
protected
_meetingRequest() : mixed
Return values
mixed —_messageImportance()
Set any importance data.
protected
_messageImportance() : mixed
Return values
mixed —_poomMailFlagged()
Handle POOMMAIL_FLAGGED data.
protected
_poomMailFlagged() : mixed
Return values
mixed —_populateObject()
Populate the EAS message object.
protected
_populateObject() : mixed
Return values
mixed —_setFlags()
Set IMAP message flags (EAS categories).
protected
_setFlags(mixed $msgFlags) : mixed
Parameters
- $msgFlags : mixed
Return values
mixed —_setHeaderProperties()
Sets general email header properties: To:, From:, Cc:, Reply-To:, Subject:, Threadtopic:, Date:
protected
_setHeaderProperties() : mixed
Return values
mixed —_signedEncrypted()
Handle signed/encrypted messageclass.
protected
_signedEncrypted() : mixed
Return values
mixed —_specialTypes()
Check for and handle special message types.
protected
_specialTypes() : mixed
Signed, Encrypted, Disposition, MeetingRequest, Flagged.