\Horde_ActiveSync_Mime

This class provides some base functionality for dealing with MIME objects in the context of ActiveSync requests.

Summary

Methods
Properties
Constants
__construct()
__destruct()
__get()
__call()
hasAttachments()
isAttachment()
hasiCalendar()
isSigned()
isEncrypted()
findBody()
No public properties found
No constants found
No protected methods found
$_base
$_hasAttachments
N/A
No private methods found
No private properties found
N/A

Properties

$_base

$_base : \Horde_Mime_Part

The composited mime part.

Type

\Horde_Mime_Part

$_hasAttachments

$_hasAttachments : boolean

Local cache of hasAttachments data.

Type

boolean

Methods

__construct()

__construct(\Horde_Mime_Part  $mime) 

Cont'r

Parameters

\Horde_Mime_Part $mime

The mime data.

__destruct()

__destruct() 

__get()

__get(string  $property) : mixed

Accessor

Parameters

string $property

The property name.

Returns

mixed

__call()

__call(string  $method, array  $params) : mixed

Delegate calls to the composed MIME object.

Parameters

string $method

The method name.

array $params

The parameters.

Returns

mixed

hasAttachments()

hasAttachments() : boolean

Return the hasAttachments flag

Returns

boolean

isAttachment()

isAttachment(string  $id, string  $mime_type) : boolean

Determines if a MIME type is an attachment.

For our purposes, an attachment is any MIME part that can be downloaded by itself (i.e. all the data needed to view the part is contained within the download data).

Parameters

string $id

The MIME Id for the part we are checking.

string $mime_type

The MIME type.

Returns

boolean —

True if an attachment.

hasiCalendar()

hasiCalendar() : mixed

Return the MIME part of the iCalendar attachment, if available.

Returns

mixed —

The mime id of an iCalendar part, if present. Otherwise false.

isSigned()

isSigned(\Horde_Mime_Part  $mime = null) : boolean

Return the S/MIME status of this message (RFC2633)

Parameters

\Horde_Mime_Part $mime

Returns

boolean —

True if message is S/MIME signed, otherwise false.

isEncrypted()

isEncrypted(\Horde_Mime_Part  $mime = null) : boolean

Return the S/MIME encryption status of this message.

Parameters

\Horde_Mime_Part $mime

Returns

boolean —

True if message is S/MIME encrypted, otherwise false.

findBody()

findBody(string  $subtype = null) : mixed

Finds the main "body" text part (if any) in a message. "Body" data is the first text part under this part. Considers only body data that should be displayed as the main body on an EAS client. I.e., this ignores any text parts contained withing "attachment" parts such as messages/rfc822 attachments.

Parameters

string $subtype

Specifically search for this subtype.

Returns

mixed —

The MIME ID of the main body part, or null if a body part is not found.