Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/replyhandler/PhabricatorMailTarget.php
| Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | private function getRecipientsSummary( | ||||
| if (!PhabricatorEnv::getEnvConfig('metamta.recipients.show-hints')) { | if (!PhabricatorEnv::getEnvConfig('metamta.recipients.show-hints')) { | ||||
| return ''; | return ''; | ||||
| } | } | ||||
| $to_handles = iterator_to_array($to_handles); | $to_handles = iterator_to_array($to_handles); | ||||
| $cc_handles = iterator_to_array($cc_handles); | $cc_handles = iterator_to_array($cc_handles); | ||||
| $body = ''; | $body = ''; | ||||
| if ($to_handles) { | if ($to_handles) { | ||||
| $body .= "To: ".implode(', ', mpull($to_handles, 'getName'))."\n"; | $to_names = mpull($to_handles, 'getCommandLineObjectName'); | ||||
| $body .= "To: ".implode(', ', $to_names)."\n"; | |||||
| } | } | ||||
| if ($cc_handles) { | if ($cc_handles) { | ||||
| $body .= "Cc: ".implode(', ', mpull($cc_handles, 'getName'))."\n"; | $cc_names = mpull($cc_handles, 'getCommandLineObjectName'); | ||||
| $body .= "Cc: ".implode(', ', $cc_names)."\n"; | |||||
| } | } | ||||
| return $body; | return $body; | ||||
| } | } | ||||
| private function getRecipientsSummaryHTML( | private function getRecipientsSummaryHTML( | ||||
| PhabricatorHandleList $to_handles, | PhabricatorHandleList $to_handles, | ||||
| PhabricatorHandleList $cc_handles) { | PhabricatorHandleList $cc_handles) { | ||||
| Show All 24 Lines | |||||