Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18578909
D12100.id29106.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
904 B
Referenced Files
None
Subscribers
None
D12100.id29106.diff
View Options
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
@@ -206,6 +206,11 @@
return $this;
}
+ public function setRawFrom($raw_email, $raw_name) {
+ $this->setParam('raw-from', array($raw_email, $raw_name));
+ return $this;
+ }
+
public function setReplyTo($reply_to) {
$this->setParam('reply-to', $reply_to);
return $this;
@@ -430,6 +435,10 @@
foreach ($params as $key => $value) {
switch ($key) {
+ case 'raw-from':
+ list($from_email, $from_name) = $value;
+ $mailer->setFrom($from_email, $from_name);
+ break;
case 'from':
$from = $value;
$actor_email = null;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sep 11 2025, 11:26 PM (5 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8724085
Default Alt Text
D12100.id29106.diff (904 B)
Attached To
Mode
D12100: Allow MetaMTAMail to send with a raw "From" address
Attached
Detach File
Event Timeline
Log In to Comment