Свойство | Тип | Описание | |
---|---|---|---|
$_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. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
_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? |
Результат | 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. |
Результат | string | The plaintext part of the email message that is being sent. |
protected _getIdentityFromAddress ( ) : string | ||
Результат | 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. |
Результат | string | The plaintext part of the email message that is being sent. |
protected _getReplyToAddress ( ) : string | ||
Результат | 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? |
Результат | string | The properly formatted/flowed message body. |
protected _sendRaw ( ) |
protected _tryWithoutBinary ( $recipients, array $headers ) : boolean | ||
$headers | array | |
Результат | boolean |
public getSentMail ( ) : stream | ||
Результат | 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 | ||
Результат | boolean |
protected array $_forwardees | ||
Результат | array |
protected Horde_Mime_Header $_headers | ||
Результат | Horde_Mime_Header |
protected int $_id | ||
Результат | integer |
protected Horde_ActiveSync_Imap_Adapter $_imap | ||
Результат | Horde_ActiveSync_Imap_Adapter |
protected Horde_ActiveSync_Imap_Message $_imapMessage | ||
Результат | Horde_ActiveSync_Imap_Message |
protected Horde_Mime_Mail $_mailer | ||
Результат | Horde_Mime_Mail |
protected string $_parentFolder | ||
Результат | string |
protected Horde_ActiveSync_Rfc822 $_raw | ||
Результат | Horde_ActiveSync_Rfc822 |
protected bool $_replacemime | ||
Результат | boolean |
protected bool $_reply | ||
Результат | boolean |
protected bool $_replyTop | ||
Результат | boolean |