Page MenuHomePhabricator

D8708.diff
No OneTemporary

D8708.diff

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(<<<EOBODY
Your email to Phabricator was not processed, because an error occurred while
trying to handle it:
@@ -307,10 +317,15 @@
%s
+-- Original Message Headers --------------------------------------------------
+
+%s
+
EOBODY
,
wordwrap($description, 78),
- $this->getRawTextBody());
+ $this->getRawTextBody(),
+ $headers);
$mail = id(new PhabricatorMetaMTAMail())
->setIsErrorEmail(true)

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 24, 8:34 AM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223125
Default Alt Text
D8708.diff (1 KB)

Event Timeline