Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15378191
D15465.id37272.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1023 B
Referenced Files
None
Subscribers
None
D15465.id37272.diff
View Options
diff --git a/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php b/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
--- a/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
+++ b/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
@@ -254,10 +254,19 @@
$map = $to + $cc;
foreach ($map as $phid => $user) {
+ // Preserve the original To/Cc information on the target.
+ if (isset($to[$phid])) {
+ $target_to = array($phid => $user);
+ $target_cc = array();
+ } else {
+ $target_to = array();
+ $target_cc = array($phid => $user);
+ }
+
$target = id(clone $template)
->setViewer($user)
- ->setToMap(array($phid => $user))
- ->setCCMap(array());
+ ->setToMap($target_to)
+ ->setCCMap($target_cc);
if ($supports_private_replies) {
$reply_to = $this->getPrivateReplyHandlerEmailAddress($user);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 1:25 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7518133
Default Alt Text
D15465.id37272.diff (1023 B)
Attached To
Mode
D15465: Stop moving "Cc" addresses to "To" when building mail targets
Attached
Detach File
Event Timeline
Log In to Comment