Differential D21777 Diff 51933 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 113 Lines • ▼ Show 20 Lines | private function buildMessageProperties(PhabricatorMetaMTAMail $mail) { | ||||
$properties = id(new PHUIPropertyListView()) | $properties = id(new PHUIPropertyListView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setObject($mail); | ->setObject($mail); | ||||
if ($mail->getFrom()) { | if ($mail->getFrom()) { | ||||
$from_str = $viewer->renderHandle($mail->getFrom()); | $from_str = $viewer->renderHandle($mail->getFrom()); | ||||
} else { | } else { | ||||
$from_str = pht('Sent by Phabricator'); | $from_str = pht( | ||||
'Sent by %s', | |||||
PlatformSymbols::getPlatformServerName()); | |||||
} | } | ||||
$properties->addProperty( | $properties->addProperty( | ||||
pht('From'), | pht('From'), | ||||
$from_str); | $from_str); | ||||
if ($mail->getToPHIDs()) { | if ($mail->getToPHIDs()) { | ||||
$to_list = $viewer->renderHandleList($mail->getToPHIDs()); | $to_list = $viewer->renderHandleList($mail->getToPHIDs()); | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 320 Lines • Show Last 20 Lines |