PHP 클래스 Horde_Core_ActiveSync_Mail, horde

Wraps functionality related to sending/replying/forwarding email from EAS clients.
저자: Michael J Rubinsky ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

메소드 상세

__construct() 공개 메소드

Const'r
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.

__get() 공개 메소드

public __get ( $property )

__set() 공개 메소드

public __set ( $property, $value )

_callPreSendHook() 보호된 메소드

protected _callPreSendHook ( )

_forwardText() 보호된 메소드

Return the body of the forwarded message in the appropriate type.
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.

_getHtmlPart() 보호된 메소드

Build the HTML part of a SMARTREPLY or SMARTFORWARD
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.

_getIdentityFromAddress() 보호된 메소드

Return the current user's From address.
protected _getIdentityFromAddress ( ) : string
리턴 string A RFC822 valid email string.

_getImapMessage() 보호된 메소드

Fetch the source message for a SMART request from the IMAP server.
protected _getImapMessage ( )

_getPlainPart() 보호된 메소드

Build the text part of a SMARTREPLY or SMARTFORWARD
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.

_getReplyToAddress() 보호된 메소드

Return the current user's ReplyTo address, if available.
protected _getReplyToAddress ( ) : string
리턴 string A RFC822 valid email string.

_msgBody() 보호된 메소드

Return the body text of the original email from a smart request.
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.

_replyText() 보호된 메소드

Return the body of the replied message in the appropriate type.
protected _replyText ( 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
$html boolean Is this an html part?
리턴 string The propertly formatted replied body text.

_sendRaw() 보호된 메소드

Send the raw message received from the client. E.g., NOT a SMART request.
protected _sendRaw ( )

_sendSmart() 보호된 메소드

Sends a SMART response.
protected _sendSmart ( )

_tryWithoutBinary() 보호된 메소드

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.
protected _tryWithoutBinary ( $recipients, array $headers ) : boolean
$headers array
리턴 boolean

getSentMail() 공개 메소드

Get the raw message suitable for saving to the sent email folder.
public getSentMail ( ) : stream
리턴 stream A stream contianing the raw message.

html2text() 공개 정적인 메소드

public static html2text ( $msg )

send() 공개 메소드

Send the email.
public send ( )

setForward() 공개 메소드

Set this as a SMARTFORWARD requests.
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.

setRawMessage() 공개 메소드

Set the raw message content received from the EAS client to send.
public setRawMessage ( Horde_ActiveSync_Rfc822 $raw )
$raw Horde_ActiveSync_Rfc822 The data from the EAS client.

setReply() 공개 메소드

Set this as a SMARTREPLY requests.
public setReply ( string $parent, integer $id )
$parent string The folder containing the source message.
$id integer The source message UID.

text2html() 공개 정적인 메소드

Shortcut function to convert text -> HTML.
public static text2html ( string $msg ) : string
$msg string The message text.
리턴 string HTML text.

프로퍼티 상세

$_forward 보호되어 있는 프로퍼티

Flag indicating a SMARTFORWARD request.
protected bool $_forward
리턴 boolean

$_forwardees 보호되어 있는 프로퍼티

Array of email addresses to forward message to, if using SMART_FORWARD.
부터: 2.31.0
protected array $_forwardees
리턴 array

$_headers 보호되어 있는 프로퍼티

The headers used when sending the email.
protected Horde_Mime_Header $_headers
리턴 Horde_Mime_Header

$_id 보호되어 있는 프로퍼티

The UID of the source email for any SMARTREPLY or SMARTFORWARD requests.
protected int $_id
리턴 integer

$_imap 보호되어 있는 프로퍼티

The imap adapter needed to fetch the source IMAP message if needed.
protected Horde_ActiveSync_Imap_Adapter $_imap
리턴 Horde_ActiveSync_Imap_Adapter

$_imapMessage 보호되어 있는 프로퍼티

The message object representing the source email for a SMART[REPLY|FORWARD] request.
protected Horde_ActiveSync_Imap_Message $_imapMessage
리턴 Horde_ActiveSync_Imap_Message

$_mailer 보호되어 있는 프로퍼티

Used to fetch the raw message used to save to sent mail folder.
protected Horde_Mime_Mail $_mailer
리턴 Horde_Mime_Mail

$_parentFolder 보호되어 있는 프로퍼티

The email folder that contains the source email for any SMARTREPLY or SMARTFORWARD requests.
protected string $_parentFolder
리턴 string

$_raw 보호되어 있는 프로퍼티

The raw message body sent from the EAS client.
protected Horde_ActiveSync_Rfc822 $_raw
리턴 Horde_ActiveSync_Rfc822

$_replacemime 보호되어 있는 프로퍼티

Flag indicating the client requested to replace the MIME part a SMARTREPLY or SMARTFORWARD request.
protected bool $_replacemime
리턴 boolean

$_reply 보호되어 있는 프로퍼티

Flag indicating a SMARTREPLY request.
protected bool $_reply
리턴 boolean

$_replyTop 보호되어 있는 프로퍼티

Flag to indicate reply position for SMARTREPLY requests.
protected bool $_replyTop
리턴 boolean

$_user 보호되어 있는 프로퍼티

The current EAS user.
protected string $_user
리턴 string

$_version 보호되어 있는 프로퍼티

EAS version in use.
protected string $_version
리턴 string