Property | Type | Description | |
---|---|---|---|
$_forward | boolean | Flag indicating a SMARTFORWARD request. | |
$_forwardees | array | Array of email addresses to forward message to, if using SMART_FORWARD. | |
$_headers | Horde_Mime_Header | The headers used when sending the email. | |
$_id | integer | The UID of the source email for any SMARTREPLY or SMARTFORWARD requests. | |
$_imap | Horde_ActiveSync_Imap_Adapter | The imap adapter needed to fetch the source IMAP message if needed. | |
$_imapMessage | Horde_ActiveSync_Imap_Message | The message object representing the source email for a SMART[REPLY|FORWARD] request. | |
$_mailer | Horde_Mime_Mail | Used to fetch the raw message used to save to sent mail folder. | |
$_parentFolder | string | The email folder that contains the source email for any SMARTREPLY or SMARTFORWARD requests. | |
$_raw | Horde_ActiveSync_Rfc822 | The raw message body sent from the EAS client. | |
$_replacemime | boolean | Flag indicating the client requested to replace the MIME part a SMARTREPLY or SMARTFORWARD request. | |
$_reply | boolean | Flag indicating a SMARTREPLY request. | |
$_replyTop | boolean | Flag to indicate reply position for SMARTREPLY requests. | |
$_user | string | The current EAS user. | |
$_version | string | EAS version in use. |
Method | Description | |
---|---|---|
__construct ( Horde_ActiveSync_Imap_Adapter $imap, string $user, integer $eas_version ) | Const'r | |
__get ( $property ) | ||
__set ( $property, $value ) | ||
getSentMail ( ) : stream | Get the raw message suitable for saving to the sent email folder. | |
html2text ( $msg ) | ||
send ( ) | Send the email. | |
setForward ( string $parent, integer $id, array $params = [] ) | Set this as a SMARTFORWARD requests. | |
setRawMessage ( Horde_ActiveSync_Rfc822 $raw ) | Set the raw message content received from the EAS client to send. | |
setReply ( string $parent, integer $id ) | Set this as a SMARTREPLY requests. | |
text2html ( string $msg ) : string | Shortcut function to convert text -> HTML. |
Method | Description | |
---|---|---|
_callPreSendHook ( ) | ||
_forwardText ( array $body_data, Horde_Mime_Part $part, boolean $html = false ) : string | Return the body of the forwarded message in the appropriate type. | |
_getHtmlPart ( string $html_id, Horde_Mime_Part $mime_message, array $body_data, Horde_Mime_Part $base_part ) : string | Build the HTML part of a SMARTREPLY or SMARTFORWARD | |
_getIdentityFromAddress ( ) : string | Return the current user's From address. | |
_getImapMessage ( ) | Fetch the source message for a SMART request from the IMAP server. | |
_getPlainPart ( string $plain_id, Horde_Mime_Part $mime_message, array $body_data, Horde_Mime_Part $base_part ) : string | Build the text part of a SMARTREPLY or SMARTFORWARD | |
_getReplyToAddress ( ) : string | Return the current user's ReplyTo address, if available. | |
_msgBody ( array $body_data, Horde_Mime_Part $part, boolean $html, boolean $flow = false ) : string | Return the body text of the original email from a smart request. | |
_replyText ( array $body_data, Horde_Mime_Part $part, boolean $html = false ) : string | Return the body of the replied message in the appropriate type. | |
_sendRaw ( ) | Send the raw message received from the client. E.g., NOT a SMART request. | |
_sendSmart ( ) | Sends a SMART response. | |
_tryWithoutBinary ( $recipients, array $headers ) : boolean | Some clients (HTC One devices, for one) generate HTML signatures that contain line lengths too long for servers without BINARYMIME to send. If we are here, see if that's the reason by checking content encoding and trying again. |
public __construct ( Horde_ActiveSync_Imap_Adapter $imap, string $user, integer $eas_version ) | ||
$imap | Horde_ActiveSync_Imap_Adapter | The IMAP adapter. |
$user | string | EAS user. |
$eas_version | integer | EAS version in use. |
protected _forwardText ( array $body_data, Horde_Mime_Part $part, boolean $html = false ) : string | ||
$body_data | array | The body data array of the source msg. |
$part | Horde_Mime_Part | The body part of the email to send. |
$html | boolean | Is this an html part? |
return | string | The propertly formatted forwarded body text. |
protected _getHtmlPart ( string $html_id, Horde_Mime_Part $mime_message, array $body_data, Horde_Mime_Part $base_part ) : string | ||
$html_id | string | The MIME part id of the html part of $base_part. |
$mime_message | Horde_Mime_Part | The MIME part of the email to be sent. |
$body_data | array | @see Horde_ActiveSync_Imap_Message::getMessageBodyData() |
$base_part | Horde_Mime_Part | The base MIME part of the source message for a SMART request. |
return | string | The plaintext part of the email message that is being sent. |
protected _getIdentityFromAddress ( ) : string | ||
return | string | A RFC822 valid email string. |
protected _getImapMessage ( ) |
protected _getPlainPart ( string $plain_id, Horde_Mime_Part $mime_message, array $body_data, Horde_Mime_Part $base_part ) : string | ||
$plain_id | string | The MIME part id of the plaintext part of $base_part. |
$mime_message | Horde_Mime_Part | The MIME part of the email to be sent. |
$body_data | array | @see Horde_ActiveSync_Imap_Message::getMessageBodyData() |
$base_part | Horde_Mime_Part | The base MIME part of the source message for a SMART request. |
return | string | The plaintext part of the email message that is being sent. |
protected _getReplyToAddress ( ) : string | ||
return | string | A RFC822 valid email string. |
protected _msgBody ( array $body_data, Horde_Mime_Part $part, boolean $html, boolean $flow = false ) : string | ||
$body_data | array | The body data array of the source msg. |
$part | Horde_Mime_Part | The body mime part of the email to send. |
$html | boolean | Do we want an html body? |
$flow | boolean | Should the body be flowed? |
return | string | The properly formatted/flowed message body. |
protected _sendRaw ( ) |
protected _tryWithoutBinary ( $recipients, array $headers ) : boolean | ||
$headers | array | |
return | boolean |
public getSentMail ( ) : stream | ||
return | stream | A stream contianing the raw message. |
public setForward ( string $parent, integer $id, array $params = [] ) | ||
$parent | string | The folder containing the source message. |
$id | integer | The source message UID. |
$params | array | Additional parameters: @since 2.31.0 - forwardees: An array of email addresses that this message will be forwarded to. DEFAULT: Recipients are taken from raw message. |
public setRawMessage ( Horde_ActiveSync_Rfc822 $raw ) | ||
$raw | Horde_ActiveSync_Rfc822 | The data from the EAS client. |
protected bool $_forward | ||
return | boolean |
protected array $_forwardees | ||
return | array |
protected Horde_Mime_Header $_headers | ||
return | Horde_Mime_Header |
protected int $_id | ||
return | integer |
protected Horde_ActiveSync_Imap_Adapter $_imap | ||
return | Horde_ActiveSync_Imap_Adapter |
protected Horde_ActiveSync_Imap_Message $_imapMessage | ||
return | Horde_ActiveSync_Imap_Message |
protected Horde_Mime_Mail $_mailer | ||
return | Horde_Mime_Mail |
protected string $_parentFolder | ||
return | string |
protected Horde_ActiveSync_Rfc822 $_raw | ||
return | Horde_ActiveSync_Rfc822 |
protected bool $_replacemime | ||
return | boolean |
protected bool $_reply | ||
return | boolean |
protected bool $_replyTop | ||
return | boolean |