Page MenuHomePhabricator

D10232.diff
No OneTemporary

D10232.diff

diff --git a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php
--- a/src/applications/metamta/storage/PhabricatorMetaMTAMail.php
+++ b/src/applications/metamta/storage/PhabricatorMetaMTAMail.php
@@ -96,6 +96,15 @@
}
public function addRawTos(array $raw_email) {
+
+ // Strip addresses down to bare emails, since the MailAdapter API currently
+ // requires we pass it just the address (like `alincoln@logcabin.org`), not
+ // a full string like `"Abraham Lincoln" <alincoln@logcabin.org>`.
+ foreach ($raw_email as $key => $email) {
+ $object = new PhutilEmailAddress($email);
+ $raw_email[$key] = $object->getAddress();
+ }
+
$this->setParam('raw-to', $raw_email);
return $this;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 26, 1:22 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7561834
Default Alt Text
D10232.diff (800 B)

Event Timeline