Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15382427
D14996.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
D14996.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
@@ -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
Details
Attached
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)
Attached To
Mode
D14996: Fix an issue where generation of mail processing error email could fail in the presence of duplicate headers
Attached
Detach File
Event Timeline
Log In to Comment