Differential D18984 Diff 45535 src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | private function buildHeaderProperties(PhabricatorMetaMTAMail $mail) { | ||||
// Sort headers by name. | // Sort headers by name. | ||||
$headers = isort($headers, 0); | $headers = isort($headers, 0); | ||||
foreach ($headers as $header) { | foreach ($headers as $header) { | ||||
list($key, $value) = $header; | list($key, $value) = $header; | ||||
$properties->addProperty($key, $value); | $properties->addProperty($key, $value); | ||||
} | } | ||||
$encrypt_phids = $mail->getMustEncryptReasons(); | |||||
if ($encrypt_phids) { | |||||
$properties->addProperty( | |||||
pht('Must Encrypt'), | |||||
$viewer->loadHandles($encrypt_phids) | |||||
->renderList()); | |||||
} | |||||
return $properties; | return $properties; | ||||
} | } | ||||
private function buildDeliveryProperties(PhabricatorMetaMTAMail $mail) { | private function buildDeliveryProperties(PhabricatorMetaMTAMail $mail) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$properties = id(new PHUIPropertyListView()) | $properties = id(new PHUIPropertyListView()) | ||||
->setUser($viewer); | ->setUser($viewer); | ||||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |