Differential D19989 Diff 47748 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 109 Lines • ▼ Show 20 Lines | foreach ($messages as $message_key => $message) { | ||||
| $info[] = pht('%s: %s', $key, $value); | $info[] = pht('%s: %s', $key, $value); | ||||
| } | } | ||||
| $info[] = null; | $info[] = null; | ||||
| $info[] = $this->newSectionHeader(pht('HEADERS')); | $info[] = $this->newSectionHeader(pht('HEADERS')); | ||||
| $headers = $message->getDeliveredHeaders(); | $headers = $message->getDeliveredHeaders(); | ||||
| if (!$headers) { | |||||
| $headers = array(); | |||||
| } | |||||
| $unfiltered = $message->getUnfilteredHeaders(); | $unfiltered = $message->getUnfilteredHeaders(); | ||||
| if (!$unfiltered) { | |||||
| $unfiltered = array(); | |||||
| } | |||||
| $header_map = array(); | $header_map = array(); | ||||
| foreach ($headers as $header) { | foreach ($headers as $header) { | ||||
| list($name, $value) = $header; | list($name, $value) = $header; | ||||
| $header_map[$name.':'.$value] = true; | $header_map[$name.':'.$value] = true; | ||||
| } | } | ||||
| foreach ($unfiltered as $header) { | foreach ($unfiltered as $header) { | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | foreach ($messages as $message_key => $message) { | ||||
| $info[] = null; | $info[] = null; | ||||
| $info[] = $this->newSectionHeader(pht('HTML BODY')); | $info[] = $this->newSectionHeader(pht('HTML BODY')); | ||||
| if (strlen($message->getHTMLBody())) { | if (strlen($message->getHTMLBody())) { | ||||
| $info[] = $message->getHTMLBody(); | $info[] = $message->getHTMLBody(); | ||||
| $info[] = null; | $info[] = null; | ||||
| } else { | } else { | ||||
| $info[] = pht('(This message has no HTML body.)'); | $info[] = pht('(This message has no HTML body.)'); | ||||
| $info[] = null; | |||||
| } | } | ||||
| $console->writeOut('%s', implode("\n", $info)); | $console->writeOut('%s', implode("\n", $info)); | ||||
| if ($message_key != $last_key) { | if ($message_key != $last_key) { | ||||
| $console->writeOut("\n%s\n\n", str_repeat('-', 80)); | $console->writeOut("\n%s\n\n", str_repeat('-', 80)); | ||||
| } | } | ||||
| } | } | ||||
| Show All 11 Lines | |||||