1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Explicitly test for reply-to support before using the public reply-to address

Summary: We need to perform an explicit test for public reply support.
Previously, the existence of a valid result here was a sufficient implicit test
for public reply support, but it no longer is.
Test Plan: With an unmodified configuration, sent email. It generated with the
correct reply-to (me). Restored my original configuration and sent an email, it
generated with the correct (routed) reply-to.
Reviewed By: codeblock
Reviewers: codeblock
CC: aran, codeblock
Differential Revision: 626
This commit is contained in:
epriestley 2011-07-08 23:16:58 -07:00
parent e1209be057
commit 7005cac32a

View file

@ -83,8 +83,8 @@ abstract class PhabricatorMailReplyHandler {
$mail->addTos(mpull($to_handles, 'getPHID'));
$mail->addCCs(mpull($cc_handles, 'getPHID'));
$reply_to = $this->getPublicReplyHandlerEmailAddress();
if ($reply_to) {
if ($this->supportsPublicReplies()) {
$reply_to = $this->getPublicReplyHandlerEmailAddress();
$mail->setReplyTo($reply_to);
}
@ -131,7 +131,7 @@ abstract class PhabricatorMailReplyHandler {
$mail->addHeader($header, $value);
}
if (!$reply_to) {
if (!$reply_to && $this->supportsPublicReplies()) {
$reply_to = $this->getPublicReplyHandlerEmailAddress();
}