final public function setMailReceiver($mail_receiver)
final public function setMailReceiver($mail_receiver)
Parameters
$mail_receiver |
Return
wild |
final public function getMailReceiver()
final public function getMailReceiver()
Return
wild |
public function setApplicationEmail($email)
public function setApplicationEmail($email)
Parameters
PhabricatorMetaMTAApplicationEmail |
Return
wild |
public function getApplicationEmail()
public function getApplicationEmail()
Return
wild |
final public function setActor($actor)
final public function setActor($actor)
Parameters
PhabricatorUser | $actor |
Return
wild |
final public function getActor()
final public function getActor()
Return
wild |
final public function setExcludeMailRecipientPHIDs($exclude)
final public function setExcludeMailRecipientPHIDs($exclude)
Parameters
array | $exclude |
Return
wild |
final public function getExcludeMailRecipientPHIDs()
final public function getExcludeMailRecipientPHIDs()
Return
wild |
public function setUnexpandablePHIDs($phids)
public function setUnexpandablePHIDs($phids)
Parameters
array | $phids |
Return
wild |
public function getUnexpandablePHIDs()
public function getUnexpandablePHIDs()
Return
wild |
abstract public function validateMailReceiver($mail_receiver)
abstract public function validateMailReceiver($mail_receiver)
Parameters
$mail_receiver |
Return
wild |
abstract public function getPrivateReplyHandlerEmailAddress($user)
abstract public function getPrivateReplyHandlerEmailAddress($user)
Parameters
PhabricatorUser | $user |
Return
wild |
public function getReplyHandlerDomain()
public function getReplyHandlerDomain()
Return
wild |
abstract protected function receiveEmail($mail)
abstract protected function receiveEmail($mail)
Parameters
PhabricatorMetaMTAReceivedMail |
Return
wild |
public function processEmail($mail)
public function processEmail($mail)
Parameters
PhabricatorMetaMTAReceivedMail |
Return
wild |
public function supportsPrivateReplies()
public function supportsPrivateReplies()
Return
wild |
public function supportsPublicReplies()
public function supportsPublicReplies()
Return
wild |
final public function supportsReplies()
final public function supportsReplies()
Return
wild |
public function getPublicReplyHandlerEmailAddress()
public function getPublicReplyHandlerEmailAddress()
Return
wild |
protected function getDefaultPublicReplyHandlerEmailAddress($prefix)
protected function getDefaultPublicReplyHandlerEmailAddress($prefix)
Parameters
$prefix |
Return
wild |
protected function getSingleReplyHandlerPrefix($address)
protected function getSingleReplyHandlerPrefix($address)
Parameters
$address |
Return
wild |
protected function getDefaultPrivateReplyHandlerEmailAddress($user, $prefix)
protected function getDefaultPrivateReplyHandlerEmailAddress($user, $prefix)
Parameters
PhabricatorUser | $user | |
$prefix |
Return
wild |
final protected function enhanceBodyWithAttachments($body, $attachments)
final protected function enhanceBodyWithAttachments($body, $attachments)
Parameters
$body | ||
array | $attachments |
Return
wild |
final public function getMailTargets($raw_to, $raw_cc)
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_to | List of "To" PHIDs. |
list<phid> | $raw_cc | List of "CC" PHIDs. |
Return
list<PhabricatorMailTarget> | List of targets. |
private function expandRecipientPHIDs($to, $cc)
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> | $to | List of To PHIDs. |
list<phid> | $cc | List of CC PHIDs. |
Return
pair<list<phid>, list<phid>> | Expanded PHID lists. |
private function loadRecipientUsers($to, $cc)
private function loadRecipientUsers($to, $cc)
Load PhabricatorUser objects for each recipient.
Invalid recipients are dropped from the results.
Parameters
list<phid> | $to | List of To PHIDs. |
list<phid> | $cc | List of CC PHIDs. |
Return
pair<wild, wild> | Maps from PHIDs to users. |
private function filterRecipientUsers($to, $cc)
private function filterRecipientUsers($to, $cc)
Remove recipients who do not have permission to view the mail receiver.
Parameters
map<string, | $to | PhabricatorUser> Map of "To" users. |
map<string, | $cc | PhabricatorUser> Map of "CC" users. |
Return
pair<wild, wild> | Filtered user maps. |