Page MenuHomePhabricator
Diviner Phabricator Tech Docs ConpherenceThreadMailReceiver

final class ConpherenceThreadMailReceiver
Phabricator Technical Documentation (Conpherence)

This class is not documented.

Methods

public function setApplicationEmail($email)
Inherited

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

public function getApplicationEmail()
Inherited

This method is not documented.
Return
wild

public function isEnabled()

This method is not documented.
Return
wild

final public function canAcceptMail($mail)
Inherited

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

final protected function canAcceptApplicationMail($app, $mail)
Inherited

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

final protected function processReceivedMail($mail, $sender)
Inherited

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

final public function receiveMail($mail, $sender)
Inherited

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

public function getViewer()
Inherited

This method is not documented.
Return
wild

public function validateSender($mail, $sender)
Inherited

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

public function loadSender($mail)
Inherited

PhabricatorMailReceiver

Identifies the sender's user account for a piece of received mail. Note that this method does not validate that the sender is who they say they are, just that they've presented some credential which corresponds to a recognizable user.

Parameters
PhabricatorMetaMTAReceivedMail$mail
Return
wild

public static function matchAddresses($u, $v)
Inherited

PhabricatorMailReceiver

Determine if two inbound email addresses are effectively identical. This method strips and normalizes addresses so that equivalent variations are correctly detected as identical. For example, these addresses are all considered to match one another:

"Abraham Lincoln" <alincoln@example.com>
alincoln@example.com
<ALincoln@example.com>
"Abraham" <phabricator+ALINCOLN@EXAMPLE.COM> # With configured prefix.
Parameters
string$uEmail address.
string$vAnother email address.
Return
boolTrue if addresses match.

public static function stripMailboxPrefix($address)
Inherited

PhabricatorMailReceiver

Strip a global mailbox prefix from an address if it is present. Phabricator can be configured to prepend a prefix to all reply addresses, which can make forwarding rules easier to write. A prefix looks like:

example@phabricator.example.com # No Prefix phabricator+example@phabricator.example.com # Prefix "phabricator"

Parameters
string$addressEmail address, possibly with a mailbox prefix.
Return
stringEmail address with any prefix stripped.

public static function getRawAddress($address)
Inherited

PhabricatorMailReceiver

Reduce an email address to its canonical form. For example, an address like:

"Abraham Lincoln" < ALincoln@example.com >

...will be reduced to:

alincoln@example.com

Parameters
string$addressEmail address in noncanonical form.
Return
stringCanonical email address.

protected function getObjectPattern()

PhabricatorObjectMailReceiver

Return a regular expression fragment which matches the name of an object which can receive mail. For example, Differential uses:

D[1-9]\d*

...to match D123, etc., identifying Differential Revisions.

ConpherenceThreadMailReceiver
This method is not documented.
Return
stringRegular expression fragment.

protected function loadObject($pattern, $viewer)

PhabricatorObjectMailReceiver

Load the object receiving mail, based on an identifying pattern. Normally this pattern is some sort of object ID.

ConpherenceThreadMailReceiver
This method is not documented.
Parameters
string$patternA string matched by @{method:getObjectPattern} fragment.
PhabricatorUser$viewerThe viewing user.
Return
void

protected function processReceivedObjectMail($mail, $object, $sender)
Inherited

This method is not documented.
Parameters
PhabricatorMetaMTAReceivedMail$mail
PhabricatorLiskDAO$object
PhabricatorUser$sender
Return
wild

protected function getTransactionReplyHandler()

This method is not documented.
Return
wild

public function loadMailReceiverObject($pattern, $viewer)
Inherited

This method is not documented.
Parameters
$pattern
PhabricatorUser$viewer
Return
wild

private function matchObjectAddressInMail($mail)
Inherited

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

private function matchObjectAddress($address)
Inherited

This method is not documented.
Parameters
$address
Return
wild

private function getAddressRegexp()
Inherited

This method is not documented.
Return
wild

private function loadObjectFromMail($mail, $sender)
Inherited

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

public static function computeMailHash($mail_key, $phid)
Inherited

This method is not documented.
Parameters
$mail_key
$phid
Return
wild