$envelope
$envelope : \Horde_Imap_Client_Data_Envelope
The message envelope.
This class provides all functionality related to parsing and working with a single IMAP email message when using Horde_Imap_Client.
Some Mime parsing code taken from Imp_Contents.
$_basePart : \Horde_ActiveSync_Mime
Message structure.
$_mbd : \Horde_ActiveSync_Imap_MessageBodyData
Local cache of MessageBodyData object.
__construct(\Horde_Imap_Client_Base $imap, \Horde_Imap_Client_Mailbox $mbox, \Horde_Imap_Client_Data_Fetch $data)
Constructor
\Horde_Imap_Client_Base | $imap | The imap client object. |
\Horde_Imap_Client_Mailbox | $mbox | The mailbox object. |
\Horde_Imap_Client_Data_Fetch | $data | The data returned from a FETCH must contain at least uid, structure and flags. |
getMessageBodyData(array $options = array()) : array
Returns the main text body of the message suitable for sending over EAS response.
array | $options | An options array containgin:
|
Horde_Exception_NotFound
An array of one or both of 'plain' and 'html' content.
getMessageBodyDataObject(array $options = array()) : \Horde_ActiveSync_Imap_MessageBodyData
Returns the main text body of the message suitable for sending over EAS response.
array | $options | An options array containgin:
|
Horde_Exception_NotFound
The result.
None found |
getAttachments(float $version) : array
Return an array of Horde_ActiveSync_Message_Attachment objects for the current message.
float | $version | The EAS protocol version this is for. |
An array of Horde_ActiveSync_Message_Attachment objects.
None found |
getAttachmentsMimeParts() : array
Return an array of mime parts for each message attachment.
An array of Horde_Mime_Part objects.
None found |
getMimePart(integer $id, array $options = array()) : \Horde_Mime_Part
Fetch a part of a MIME message.
integer | $id | The MIME index of the part requested. |
array | $options | Additional options:
|
The raw MIME part asked for.
None found |
getPartName(\Horde_Mime_Part $part, boolean $use_descrip = false) : string
Return the descriptive part label, making sure it is not empty.
\Horde_Mime_Part | $part | The MIME Part object. |
boolean | $use_descrip | Use description? If false, uses name. |
The part label (non-empty).
None found |
getBodyPart(integer $id, array $options) : mixed
Gets the raw text for one section of the message.
integer | $id | The ID of the MIME part. |
array | $options | Additional options:
|
The text of the part or a stream resource if 'stream' is true.
todo |
Simplify by removing 'mimeheaders' parameter (not used). |
---|
getToAddresses() : array
Return the To addresses from this message.
An array containing arrays of 'to' and 'displayto' addresses. @since 2.37.1, ensures the text is UTF8.
None found |
getCc() : string
Return the CC addresses for this message.
@since 2.27.0
The Cc address string.
None found |
getReplyTo() : string
Return the ReplyTo Address
@since 2.27.0
None found |
getFromAddress() : string
Return the message's From: address.
@since 2.27.0
The From address of this message.
None found |
None found |
getDate() : \Horde_Date
Return the message date.
The messages's envelope date.
None found |
getFlag(string $flag) : boolean
Get a message flag
string | $flag | The flag to search for. |
None found |
since | 2.17.0 |
---|
contentTypeMap() : array
Return this message's content map
The content map, with mime ids as keys and content type as values.
None found |
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).
string | $id | The MIME Id for the part we are checking. |
string | $mime_type | The MIME type. |
True if an attachment.
None found |
hasiCalendar() : mixed
Return the MIME part of the iCalendar attachment, if available.
The mime part, if present, false otherwise.
None found |
None found |
isSigned(\Horde_Mime_Part $message = null) : boolean
Return the S/MIME signature status of this message (RFC2633)
\Horde_Mime_Part | $message | A mime part to check. If omitted, use self::$_message. |
True if message is S/MIME signed, false otherwise.
None found |
isEncrypted(\Horde_Mime_Part $message = null) : boolean
Return the S/MIME encryption status of this message (RFC2633)
\Horde_Mime_Part | $message | A mime part to check. If omitted, use self::$_message. |
True if message is S/MIME signed or encrypted, false otherwise.
None found |
_buildEasAttachmentFromMime(integer $id, \Horde_Mime_Part $mime_part, float $version) : \Horde_ActiveSync_Message_AirSyncBaseAttachment
Build an appropriate attachment object from the given mime part.
integer | $id | The mime id for the part |
\Horde_Mime_Part | $mime_part | The mime part. |
float | $version | The EAS version. |
| Horde_ActiveSync_Message_Attachment
None found |
_decodeTnefData(integer|\Horde_Mime_part $data) : \Horde_Mime_Part
Convert a TNEF attachment into a multipart/mixed part.
integer|\Horde_Mime_part | $data | Either a mime part id or a Horde_Mime_Part object containing the TNEF attachment. |
The multipart/mixed MIME part containing any attachment data we can decode.
None found |