Page MenuHomePhorge
Diviner Tech Docs PhabricatorMailReplyHandler

abstract class PhabricatorMailReplyHandler
Phorge Technical Documentation (MetaMTA)

This class is not documented.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

final public function setMailReceiver($mail_receiver)

This method is not documented.
Parameters
$mail_receiver
Return
wild

final public function getMailReceiver()

This method is not documented.
Return
wild

public function setApplicationEmail($email)

This method is not documented.
Parameters
PhabricatorMetaMTAApplicationEmail$email
Return
wild

public function getApplicationEmail()

This method is not documented.
Return
wild

final public function setActor($actor)

This method is not documented.
Parameters
PhabricatorUser$actor
Return
wild

final public function getActor()

This method is not documented.
Return
wild

final public function setExcludeMailRecipientPHIDs($exclude)

This method is not documented.
Parameters
array$exclude
Return
wild

final public function getExcludeMailRecipientPHIDs()

This method is not documented.
Return
wild

public function setUnexpandablePHIDs($phids)

This method is not documented.
Parameters
array$phids
Return
wild

public function getUnexpandablePHIDs()

This method is not documented.
Return
wild

abstract public function validateMailReceiver($mail_receiver)

This method is not documented.
Parameters
$mail_receiver
Return
wild

abstract public function getPrivateReplyHandlerEmailAddress($user)

This method is not documented.
Parameters
PhabricatorUser$user
Return
wild

public function getReplyHandlerDomain()

This method is not documented.
Return
wild

abstract protected function receiveEmail($mail)

This method is not documented.
Parameters
PhabricatorMetaMTAReceivedMail$mail
Return
wild

public function processEmail($mail)

This method is not documented.
Parameters
PhabricatorMetaMTAReceivedMail$mail
Return
wild

public function supportsPrivateReplies()

This method is not documented.
Return
wild

public function supportsPublicReplies()

This method is not documented.
Return
wild

final public function supportsReplies()

This method is not documented.
Return
wild
This method is not documented.
Return
wild

protected function getDefaultPublicReplyHandlerEmailAddress($prefix)

This method is not documented.
Parameters
$prefix
Return
wild

protected function getSingleReplyHandlerPrefix($address)

This method is not documented.
Parameters
$address
Return
wild

protected function getDefaultPrivateReplyHandlerEmailAddress($user, $prefix)

This method is not documented.
Parameters
PhabricatorUser$user
$prefix
Return
wild

final protected function enhanceBodyWithAttachments($body, $attachments)

This method is not documented.
Parameters
$body
array$attachments
Return
wild

final public function getMailTargets($raw_to, $raw_cc)

Produce a list of mail targets for a given to/cc list.

Each target should be sent a separate email, and contains the information required to generate it with appropriate permissions and configuration.

Parameters
list<phid>$raw_toList of "To" PHIDs.
list<phid>$raw_ccList of "CC" PHIDs.
Return
list<PhabricatorMailTarget>List of targets.

private function expandRecipientPHIDs($to, $cc)

Expand lists of recipient PHIDs.

This takes any compound recipients (like projects) and looks up all their members.

Parameters
list<phid>$toList of To PHIDs.
list<phid>$ccList of CC PHIDs.
Return
pair<list<phid>, list<phid>>Expanded PHID lists.

private function loadRecipientUsers($to, $cc)

Load PhabricatorUser objects for each recipient.

Invalid recipients are dropped from the results.

Parameters
list<phid>$toList of To PHIDs.
list<phid>$ccList of CC PHIDs.
Return
pair<wild, wild>Maps from PHIDs to users.

private function filterRecipientUsers($to, $cc)

Remove recipients who do not have permission to view the mail receiver.

Parameters
map<string,$toPhabricatorUser> Map of "To" users.
map<string,$ccPhabricatorUser> Map of "CC" users.
Return
pair<wild, wild>Filtered user maps.