diff --git a/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php b/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php --- a/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php +++ b/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php @@ -297,6 +297,16 @@ $description = pht('%s: %s', get_class($ex), $ex->getMessage()); } + // TODO: Since headers don't necessarily have unique names, this may not + // really be all the headers. It would be nice to pass the raw headers + // through from the upper layers where possible. + + $headers = array(); + foreach ($this->headers as $key => $value) { + $headers[] = pht('%s: %s', $key, $value); + } + $headers = implode("\n", $headers); + $body = pht(<<getRawTextBody()); + $this->getRawTextBody(), + $headers); $mail = id(new PhabricatorMetaMTAMail()) ->setIsErrorEmail(true)