Page MenuHomePhabricator

D14996.diff
No OneTemporary

D14996.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
@@ -327,9 +327,18 @@
// really be all the headers. It would be nice to pass the raw headers
// through from the upper layers where possible.
+ // On the MimeMailParser pathway, we arrive here with a list value for
+ // headers that appeared multiple times in the original mail. Be
+ // accommodating until header handling gets straightened out.
+
$headers = array();
- foreach ($this->headers as $key => $value) {
- $headers[] = pht('%s: %s', $key, $value);
+ foreach ($this->headers as $key => $values) {
+ if (!is_array($values)) {
+ $values = array($values);
+ }
+ foreach ($values as $value) {
+ $headers[] = pht('%s: %s', $key, $value);
+ }
}
$headers = implode("\n", $headers);

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 15, 12:20 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7692863
Default Alt Text
D14996.diff (1 KB)

Event Timeline