Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15426413
D8708.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8708.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8708: Add original mail headers to the bottom of error mail
Attached
Detach File
Event Timeline
Log In to Comment