Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorMetaMTAReceivedMail

final class PhabricatorMetaMTAReceivedMail
Phabricator Technical Documentation (MetaMTA)

This class is not documented.

Tasks

Configuring Storage

Other Methods

Methods

public static function pushStorageNamespace($namespace)
Inherited

This method is not documented.
Parameters
$namespace
Return
wild

public static function popStorageNamespace()
Inherited

This method is not documented.
Return
wild

public static function getDefaultStorageNamespace()
Inherited

This method is not documented.
Return
wild

public static function getStorageNamespace()
Inherited

This method is not documented.
Return
wild

public function setForcedStorageNamespace($namespace)
Inherited

This method is not documented.
Parameters
$namespace
Return
wild

protected function establishLiveConnection($mode)
Inherited

This method is not documented.
Parameters
$mode
Return
wild

private function newClusterConnection($application, $database, $mode)
Inherited

This method is not documented.
Parameters
$application
$database
$mode
Return
wild

private function raiseImproperWrite($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseImpossibleWrite($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseUnconfigured($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseUnreachable($database, $proxy)
Inherited

This method is not documented.
Parameters
$database
Exception$proxy
Return
wild

public function getTableName()
Inherited

This method is not documented.
Return
wild

public function getApplicationName()
Inherited

This method is not documented.
Return
wild

protected function getDatabaseName()
Inherited

This method is not documented.
Return
wild

public static function chunkSQL($fragments, $limit)
Inherited

PhabricatorLiskDAO

Break a list of escaped SQL statement fragments (e.g., VALUES lists for INSERT, previously built with qsprintf()) into chunks which will fit under the MySQL 'max_allowed_packet' limit.

If a statement is too large to fit within the limit, it is broken into its own chunk (but might fail when the query executes).

Parameters
array$fragments
$limit
Return
wild

protected function assertAttached($property)
Inherited

This method is not documented.
Parameters
$property
Return
wild

protected function assertAttachedKey($value, $key)
Inherited

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

protected function detectEncodingForStorage($string)
Inherited

This method is not documented.
Parameters
$string
Return
wild

protected function getUTF8StringFromStorage($string, $encoding)
Inherited

This method is not documented.
Parameters
$string
$encoding
Return
wild

protected function willReadData(&$data)
Inherited

This method is not documented.
Parameters
array&$data
Return
wild

protected function willWriteData(&$data)
Inherited

This method is not documented.
Parameters
array&$data
Return
wild

protected function getConfiguration()

This method is not documented.
Return
wild

public function setHeaders($headers)

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

public function getHeader($key, $default)

This method is not documented.
Parameters
$key
$default
Return
wild

private function normalizeMailHeaderName($name)

This method is not documented.
Parameters
$name
Return
wild

public function getMessageID()

This method is not documented.
Return
wild

public function getSubject()

This method is not documented.
Return
wild

public function getCCAddresses()

This method is not documented.
Return
wild

public function getToAddresses()

This method is not documented.
Return
wild

public function newTargetAddresses()

This method is not documented.
Return
wild

public function loadAllRecipientPHIDs()

This method is not documented.
Return
wild

public function processReceivedMail()

This method is not documented.
Return
wild

public function getCleanTextBody()

This method is not documented.
Return
wild

public function parseBody()

This method is not documented.
Return
wild

public function getRawTextBody()

This method is not documented.
Return
wild

private function getRawEmailAddress($address)

Strip an email address down to the actual user@domain.tld part if necessary, since sometimes it will have formatting like '"Abraham Lincoln" <alincoln@logcab.in>'.

Parameters
$address
Return
wild

private function getRawEmailAddresses($addresses)

This method is not documented.
Parameters
$addresses
Return
wild

private function dropMailFromPhabricator()

If Phabricator sent the mail, always drop it immediately. This prevents loops where, e.g., the public bug address is also a user email address and creating a bug sends them an email, which loops.

Return
wild

private function dropMailAlreadyReceived()

If this mail has the same message ID as some other mail, and isn't the first mail we we received with that message ID, we drop it as a duplicate.

Return
wild

private function dropEmptyMail()

This method is not documented.
Return
wild

private function sendExceptionMail($ex, $viewer)

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

public function newContentSource()

This method is not documented.
Return
wild

public function newFromAddress()

This method is not documented.
Return
wild

private function getViewer()

This method is not documented.
Return
wild

private function loadSender()

Identify 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.

Return
wild

private function validateSender($sender)

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