Differential D12297 Diff 29541 src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | foreach ($messages as $message_key => $message) { | ||||
array_merge($message->getToPHIDs(), $message->getCcPHIDs())); | array_merge($message->getToPHIDs(), $message->getCcPHIDs())); | ||||
$info[] = null; | $info[] = null; | ||||
$info[] = pht('RECIPIENTS'); | $info[] = pht('RECIPIENTS'); | ||||
foreach ($actors as $actor) { | foreach ($actors as $actor) { | ||||
if ($actor->isDeliverable()) { | if ($actor->isDeliverable()) { | ||||
$info[] = ' '.coalesce($actor->getName(), $actor->getPHID()); | $info[] = ' '.coalesce($actor->getName(), $actor->getPHID()); | ||||
} else { | } else { | ||||
$info[] = '! '.coalesce($actor->getName(), $actor->getPHID()); | $info[] = '! '.coalesce($actor->getName(), $actor->getPHID()); | ||||
foreach ($actor->getUndeliverableReasons() as $reason) { | |||||
$info[] = ' - '.$reason; | |||||
} | } | ||||
foreach ($actor->getDeliverabilityReasons() as $reason) { | |||||
$desc = PhabricatorMetaMTAActor::getReasonDescription($reason); | |||||
$info[] = ' - '.$desc; | |||||
} | } | ||||
} | } | ||||
$info[] = null; | $info[] = null; | ||||
$info[] = pht('TEXT BODY'); | $info[] = pht('TEXT BODY'); | ||||
if (strlen($message->getBody())) { | if (strlen($message->getBody())) { | ||||
$info[] = $message->getBody(); | $info[] = $message->getBody(); | ||||
} else { | } else { | ||||
Show All 21 Lines |